did-jwt
Version:
Library for Signing and Verifying JWTs that use DIDs as issuers and JWEs that use DIDs as recipients
12 lines • 735 B
TypeScript
import type { ECDH, EphemeralKeyPair, Recipient } from './types.js';
export declare function computeX25519Ecdh1PUv3Kek(recipient: Recipient, recipientSecret: Uint8Array | ECDH, senderPublicKey: Uint8Array, alg: string): Promise<Uint8Array | null>;
export declare function createX25519Ecdh1PUv3Kek(recipientPublicKey: Uint8Array, senderSecret: Uint8Array | ECDH, alg: string, // must be provided as this is the key agreement alg + the key wrapper alg, Example: 'ECDH-ES+A256KW'
apu: string | undefined, apv: string | undefined, ephemeralKeyPair: EphemeralKeyPair | undefined): Promise<{
epk: {
kty: string;
crv: string;
x: string;
};
kek: Uint8Array;
}>;
//# sourceMappingURL=X25519-ECDH-1PU.d.ts.map