package x509
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
RSA public key DER and PEM encoding and decoding
Public keys as specified in PKCS 8 are supported in this module, mainly RSA.
The polymorphic variant of public keys, with PKCS 8 encoding and decoding to PEM.
id public_key
is digest
, the 160-bit `SHA1
hash of the BIT STRING subjectPublicKey (excluding tag, length, and number of unused bits) for publicKeyInfo of public_key
.
val fingerprint : ?hash:Nocrypto.Hash.hash -> t -> Cstruct.t
fingerprint ?hash public_key
is digest
, the hash (by default SHA256) of the DER encoded public key (equivalent to openssl x509 -noout -pubkey | openssl pkey -pubin -outform DER | openssl dgst -HASH
).
Decoding and encoding in ASN.1 DER and PEM format
val decode_der : Cstruct.t -> (t, [> Rresult.R.msg ]) Rresult.result
decode_der buffer
is pubkey
, the public key of the ASN.1 encoded buffer.
val decode_pem : Cstruct.t -> (t, [> Rresult.R.msg ]) Rresult.result
decode_pem pem
is t
, where the public key of pem
is extracted
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page