@shieldfive/crypto 1.0.0-alpha.12 → 1.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to `@shieldfive/crypto` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 1.0.0-alpha.13 — 2026-06-09
9
+
10
+ ### Fixed
11
+
12
+ - `SHIELDFIVE_CRYPTO_VERSION` now reports the actual package version
13
+ (it was pinned at `1.0.0-alpha.11`). The constant is informational
14
+ only — it is never written into file output or any test vector.
15
+ - Corrected a backwards source comment in the `aes-gcm-v2` suite: the
16
+ cross-file nonce-prefix space *widens* from 2^32 to 2^64 (the comment
17
+ previously said "shrinks"). No behavior change — the README and
18
+ CHANGELOG already described it correctly as widening.
19
+
8
20
  ## 1.0.0-alpha.12 — 2026-06-09
9
21
 
10
22
  ### Documentation
package/SECURITY.md CHANGED
@@ -127,4 +127,4 @@ with their consent.)
127
127
 
128
128
  ---
129
129
 
130
- Last updated: v1.0.0-alpha.12
130
+ Last updated: v1.0.0-alpha.13
package/dist/index.d.ts CHANGED
@@ -52,7 +52,7 @@ export interface AutoDecryptOptions {
52
52
  */
53
53
  export declare function autoDecryptBlob(options: AutoDecryptOptions): Promise<Blob>;
54
54
  /** Library version, also written into format documentation. */
55
- export declare const SHIELDFIVE_CRYPTO_VERSION = "1.0.0-alpha.11";
55
+ export declare const SHIELDFIVE_CRYPTO_VERSION = "1.0.0-alpha.13";
56
56
  /** Default cipher suite for new files when not specified by the caller. */
57
57
  export declare const DEFAULT_SUITE: 3;
58
58
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -140,7 +140,7 @@ export async function autoDecryptBlob(options) {
140
140
  }
141
141
  }
142
142
  /** Library version, also written into format documentation. */
143
- export const SHIELDFIVE_CRYPTO_VERSION = '1.0.0-alpha.11';
143
+ export const SHIELDFIVE_CRYPTO_VERSION = '1.0.0-alpha.13';
144
144
  /** Default cipher suite for new files when not specified by the caller. */
145
145
  export const DEFAULT_SUITE = SUITE.PQ_HYBRID_XCHACHA_MLKEM1024_V1;
146
146
  //# sourceMappingURL=index.js.map
@@ -4,12 +4,12 @@
4
4
  * Per-file content key. Per-chunk AEAD with file_id-bound AAD that
5
5
  * authenticates chunk index, total chunks, and the is-final flag. The
6
6
  * 12-byte GCM IV is split into an 8-byte file-derived prefix and a 4-byte
7
- * big-endian counter — a wider prefix than v1 (0x01) so the per-file
8
- * `(prefix, counter)` collision space across files sharing a content
9
- * key shrinks from 2^32 to 2^64. The per-file chunk ceiling drops from
10
- * 2^64 to 2^32 chunks, which is still well above any practical bound
11
- * the format permits (`MAX_TOTAL_CHUNKS` is 1e9 and `chunkIndex` is a
12
- * safe JS integer).
7
+ * big-endian counter — a wider prefix than v1 (0x01) so the cross-file
8
+ * nonce-prefix space widens from 2^32 to 2^64, shrinking the chance of an
9
+ * IV collision across files that share a content key. The per-file chunk
10
+ * ceiling drops from 2^64 to 2^32 chunks, which is still well above any
11
+ * practical bound the format permits (`MAX_TOTAL_CHUNKS` is 1e9 and
12
+ * `chunkIndex` is a safe JS integer).
13
13
  */
14
14
  import { type ParsedHeader } from '../../internal/types.js';
15
15
  export declare const AES_GCM_V2_TAG_BYTES = 16;
@@ -4,12 +4,12 @@
4
4
  * Per-file content key. Per-chunk AEAD with file_id-bound AAD that
5
5
  * authenticates chunk index, total chunks, and the is-final flag. The
6
6
  * 12-byte GCM IV is split into an 8-byte file-derived prefix and a 4-byte
7
- * big-endian counter — a wider prefix than v1 (0x01) so the per-file
8
- * `(prefix, counter)` collision space across files sharing a content
9
- * key shrinks from 2^32 to 2^64. The per-file chunk ceiling drops from
10
- * 2^64 to 2^32 chunks, which is still well above any practical bound
11
- * the format permits (`MAX_TOTAL_CHUNKS` is 1e9 and `chunkIndex` is a
12
- * safe JS integer).
7
+ * big-endian counter — a wider prefix than v1 (0x01) so the cross-file
8
+ * nonce-prefix space widens from 2^32 to 2^64, shrinking the chance of an
9
+ * IV collision across files that share a content key. The per-file chunk
10
+ * ceiling drops from 2^64 to 2^32 chunks, which is still well above any
11
+ * practical bound the format permits (`MAX_TOTAL_CHUNKS` is 1e9 and
12
+ * `chunkIndex` is a safe JS integer).
13
13
  */
14
14
  import { buildChunkAad } from '../../format/header.js';
15
15
  import { HKDF_INFO, HEADER_SIZES, } from '../../internal/types.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shieldfive/crypto",
3
- "version": "1.0.0-alpha.12",
3
+ "version": "1.0.0-alpha.13",
4
4
  "description": "Client-side post-quantum hybrid encryption for cloud storage. The cryptographic core of ShieldFive.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/src/index.ts CHANGED
@@ -218,7 +218,7 @@ export async function autoDecryptBlob(
218
218
  }
219
219
 
220
220
  /** Library version, also written into format documentation. */
221
- export const SHIELDFIVE_CRYPTO_VERSION = '1.0.0-alpha.11'
221
+ export const SHIELDFIVE_CRYPTO_VERSION = '1.0.0-alpha.13'
222
222
 
223
223
  /** Default cipher suite for new files when not specified by the caller. */
224
224
  export const DEFAULT_SUITE = SUITE.PQ_HYBRID_XCHACHA_MLKEM1024_V1
@@ -4,12 +4,12 @@
4
4
  * Per-file content key. Per-chunk AEAD with file_id-bound AAD that
5
5
  * authenticates chunk index, total chunks, and the is-final flag. The
6
6
  * 12-byte GCM IV is split into an 8-byte file-derived prefix and a 4-byte
7
- * big-endian counter — a wider prefix than v1 (0x01) so the per-file
8
- * `(prefix, counter)` collision space across files sharing a content
9
- * key shrinks from 2^32 to 2^64. The per-file chunk ceiling drops from
10
- * 2^64 to 2^32 chunks, which is still well above any practical bound
11
- * the format permits (`MAX_TOTAL_CHUNKS` is 1e9 and `chunkIndex` is a
12
- * safe JS integer).
7
+ * big-endian counter — a wider prefix than v1 (0x01) so the cross-file
8
+ * nonce-prefix space widens from 2^32 to 2^64, shrinking the chance of an
9
+ * IV collision across files that share a content key. The per-file chunk
10
+ * ceiling drops from 2^64 to 2^32 chunks, which is still well above any
11
+ * practical bound the format permits (`MAX_TOTAL_CHUNKS` is 1e9 and
12
+ * `chunkIndex` is a safe JS integer).
13
13
  */
14
14
 
15
15
  import { buildChunkAad } from '../../format/header.js'