@ldclabs/cose-ts
Version:
Implemented Keys, Algorithms (RFC9053), COSE (RFC9052) and CWT (RFC8392) in TypeScript.
28 lines (27 loc) • 1.04 kB
TypeScript
import { Header } from './header';
export declare class PartyInfo {
identity: Uint8Array | null;
nonce: Uint8Array | null;
other: Uint8Array | null;
static fromCBORValue(value: unknown): PartyInfo;
constructor(identity?: Uint8Array | null, nonce?: Uint8Array | null, other?: Uint8Array | null);
toCBORValue(): unknown;
}
export declare class SuppPubInfo {
keyDataLength: number;
protected: Header;
other: Uint8Array | null;
static fromCBORValue(value: unknown): SuppPubInfo;
constructor(keyDataLength: number, protectedV: Header, other?: Uint8Array | null);
toCBORValue(): unknown;
}
export declare class KDFContext {
algorithmID: number;
partyUInfo: PartyInfo;
partyVInfo: PartyInfo;
suppPubInfo: SuppPubInfo;
suppPrivInfo: Uint8Array | null;
static fromBytes(data: Uint8Array): KDFContext;
constructor(algorithmID: number, partyUInfo: PartyInfo, partyVInfo: PartyInfo, suppPubInfo: SuppPubInfo, suppPrivInfo?: Uint8Array | null);
toBytes(): Uint8Array;
}