pubkey_pem
(
public_key)
DATA TYPES
pem_entry() = {pki_asn1_type(), binary(), not_encrypted | {Cipher::string(), Salt::binary()}}
-
pki_asn1_type() = 'Certificate' | 'RSAPrivateKey' | 'RSAPublicKey' | 'DSAPrivateKey' | 'DSAPublicKey' | 'DHParameter' | 'SubjectPublicKeyInfo' | 'CertificationRequest' | 'CertificateList'
-
decode(Bin::binary()) -> [pem_entry()]
encode(PemEntries::[pem_entry()]) -> iolist()
decipher(X1::{pki_asn1_type(), DerEncrypted::binary(), {Cipher::string(), Salt::iodata() | #'PBES2-params'{}}}, Password::string()) -> Der::binary()
cipher(Der::binary(), X2::{Cipher::string(), Salt::iodata() | #'PBES2-params'{}}, Password::string()) -> binary()