UNPKG

@ucanto/principal

Version:
15 lines 639 B
export function decode(info: API.ByteView<PrivateKeyInfo>): API.ByteView<RSAPrivateKey>; export function encode(key: API.ByteView<RSAPrivateKey>): API.ByteView<PrivateKeyInfo>; export type RSAPrivateKey = import('./private-key').RSAPrivateKey; export type AlgorithmIdentifier = { version: Uint8Array; parameters: Uint8Array; }; export type PrivateKeyInfo = { version: API.ByteView<number>; privateKeyAlgorithm: API.ByteView<AlgorithmIdentifier>; privateKey: API.ByteView<RSAPrivateKey>; attributes?: API.ByteView<unknown> | undefined; }; import * as API from '@ucanto/interface'; //# sourceMappingURL=pkcs8.d.ts.map