///
import { ASN1BitString, ASN1Node, ASN1OctString, ASN1Sequence, ASN1SequenceCtor, ASN1Unsigned } from './asn1';
import { X509AlgorithmIdentifier } from './x509';
export interface PublicKeyInfo extends ASN1Sequence {
algorithm: X509AlgorithmIdentifier;
publicKey: ASN1BitString;
toPEM(): string;
}
export interface PublicKeyInfoCtor extends ASN1SequenceCtor {
new (algorithm?: string | number[] | null, identifier?: ASN1Node | null, publicKey?: Buffer | number | null): PublicKeyInfo;
}
export interface PrivateKeyInfo extends ASN1Sequence {
version: ASN1Unsigned;
algorithm: X509AlgorithmIdentifier;
privateKey: ASN1OctString;
toPEM(): string;
}
export interface PrivateKeyInfoCtor extends ASN1SequenceCtor {
new (version: number, algorithm?: string | number[] | null, parameters?: ASN1Node | null, privateKey?: Buffer | null): PrivateKeyInfo;
}
export interface EncryptedPrivateKeyInfo extends ASN1Sequence {
algorithm: X509AlgorithmIdentifier;
data: ASN1OctString;
toPEM(): string;
}
export interface EncryptedPrivateKeyInfoCtor extends ASN1SequenceCtor {
new (algorithm?: string | number[] | null, identifier?: ASN1Node | null, data?: Buffer | null): EncryptedPrivateKeyInfo;
}