Skip to content

Commit d33c5d7

Browse files
committed
chore: use new noble/post-quantum exports
1 parent edc9946 commit d33c5d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/noble-suite/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { turboshake128, turboshake256 } from '@noble/hashes/sha3-addons.js'
1616
import { extract, expand } from '@noble/hashes/hkdf.js'
1717
import { sha256, sha384, sha512 } from '@noble/hashes/sha2.js'
1818
import { ml_kem512, ml_kem768, ml_kem1024 } from '@noble/post-quantum/ml-kem.js'
19-
import { MLKEM768P256, MLKEM1024P384, MLKEM768X25519 } from '@noble/post-quantum/hybrid.js'
19+
import { ml_kem768_p256, ml_kem1024_p384, ml_kem768_x25519 } from '@noble/post-quantum/hybrid.js'
2020
import { type KEM as NobleKEM } from '@noble/post-quantum/utils.js'
2121
import { x25519 } from '@noble/curves/ed25519.js'
2222
import { x448 } from '@noble/curves/ed448.js'
@@ -371,7 +371,7 @@ export const KEM_MLKEM768_X25519: HPKE.KEMFactory = () =>
371371
Nenc: 1120,
372372
Npk: 1216,
373373
Nsk: 32,
374-
kem: MLKEM768X25519,
374+
kem: ml_kem768_x25519,
375375
})
376376

377377
/**
@@ -387,7 +387,7 @@ export const KEM_MLKEM768_P256: HPKE.KEMFactory = () =>
387387
Nenc: 1153,
388388
Npk: 1249,
389389
Nsk: 32,
390-
kem: MLKEM768P256,
390+
kem: ml_kem768_p256,
391391
})
392392

393393
/**
@@ -403,7 +403,7 @@ export const KEM_MLKEM1024_P384: HPKE.KEMFactory = () =>
403403
Nenc: 1665,
404404
Npk: 1665,
405405
Nsk: 32,
406-
kem: MLKEM1024P384,
406+
kem: ml_kem1024_p384,
407407
})
408408

409409
function createPqKem(config: {

examples/noble-suite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@noble/ciphers": "^2.0.1",
2323
"@noble/curves": "^2.0.1",
2424
"@noble/hashes": "^2.0.1",
25-
"@noble/post-quantum": "^0.5.3"
25+
"@noble/post-quantum": "^0.5.4"
2626
},
2727
"peerDependencies": {
2828
"hpke": "^1.0.0"

0 commit comments

Comments
 (0)