File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
cryptoMiddleware/keyExchange Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ import { kyber768_x25519 } from './kyber768_x25519.js';
6
6
import { setOptions } from '../utils.js' ;
7
7
import { x25519 } from './x25519.js' ;
8
8
import { x25519_blake3 } from './x25519_blake3.js' ;
9
+ import { x25519_sodium } from './x25519_sodium.js' ;
9
10
const cipherList = [
10
11
kyber768Half_x25519 ,
11
12
kyber768_x25519 ,
12
13
kyber768 ,
13
14
x25519 ,
14
- x25519_blake3
15
+ x25519_blake3 ,
16
+ x25519_sodium
15
17
] ;
16
18
export const encryptionKeypairAlgorithm = new Map ( ) ;
17
19
const encryptionKeypairAlgorithmVersion1 = new Map ( ) ;
Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ export function getX25519Keypair(source) {
80
80
privateKey : getX25519Key ( source . privateKey )
81
81
} ;
82
82
}
83
- export const x25519_blake2b = {
84
- name : 'x25519_blake2b ' ,
85
- alias : 'x25519_blake2b ' ,
86
- id : 0 ,
83
+ export const x25519_sodium = {
84
+ name : 'x25519_sodium ' ,
85
+ alias : 'x25519_sodium ' ,
86
+ id : 5 ,
87
87
publicKeySize,
88
88
privateKeySize,
89
89
clientPublicKeySize : publicKeySize ,
@@ -98,7 +98,7 @@ export const x25519_blake2b = {
98
98
encryptionKeypair,
99
99
certificateEncryptionKeypair : encryptionKeypair ,
100
100
} ;
101
- export default x25519_blake2b ;
101
+ export default x25519_sodium ;
102
102
// const keypair = await encryptionKeypair();
103
103
// console.log(keypair);
104
104
// console.log(keypair.publicKey.length);
You can’t perform that action at this time.
0 commit comments