mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-07-04 12:02:29 +00:00
Export Argon2S2K to reuse the WASM module outside of the OpenPGP.js context (#12)
This commit is contained in:
parent
9cf7a384aa
commit
bec09a16fa
7
openpgp.d.ts
vendored
7
openpgp.d.ts
vendored
@ -941,6 +941,13 @@ export namespace enums {
|
||||
}
|
||||
}
|
||||
|
||||
export declare class Argon2S2K {
|
||||
constructor(config: Config);
|
||||
salt: Uint8Array;
|
||||
/** @throws Argon2OutOfMemoryError */
|
||||
produceKey(passphrase: string, keySize: number): Promise<Uint8Array>;
|
||||
}
|
||||
|
||||
interface KDFParamsData {
|
||||
version: number;
|
||||
hash: enums.hash;
|
||||
|
@ -22,6 +22,7 @@ export { CleartextMessage, readCleartextMessage, createCleartextMessage } from '
|
||||
export * from './packet';
|
||||
|
||||
export { default as KDFParams } from './type/kdf_params';
|
||||
export { default as Argon2S2K, Argon2OutOfMemoryError } from './type/s2k/argon2';
|
||||
|
||||
export * from './encoding/armor';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user