Enums§
- EcPrivate
Key - A supported elliptic-curve private key parsed from DER.
- MlDsa
Private Key - A supported ML-DSA private key parsed from DER.
- Pkcs8
Error
Constants§
- OID_
EC_ PUBLIC_ KEY - Object identifier for
id-ecPublicKey(1.2.840.10045.2.1). - OID_
ED25519 - Object identifier for Ed25519 (1.3.101.112).
- OID_
ML_ DSA_ 44 - Object identifier for
id-ml-dsa-44(2.16.840.1.101.3.4.3.17). - OID_
ML_ DSA_ 65 - Object identifier for
id-ml-dsa-65(2.16.840.1.101.3.4.3.18). - OID_
ML_ DSA_ 87 - Object identifier for
id-ml-dsa-87(2.16.840.1.101.3.4.3.19). - OID_
RSA_ ENCRYPTION - Object identifier for
rsaEncryption(1.2.840.113549.1.1.1). - OID_
SECP256 R1 - Object identifier for
secp256r1/ NIST P-256 (1.2.840.10045.3.1.7). - OID_
SECP384 R1 - Object identifier for
secp384r1/ NIST P-384 (1.3.132.0.34).
Functions§
- decode_
ec_ pkcs8_ der - Decodes a PKCS#8
PrivateKeyInfoDER containing a P-256 or P-384 key. - decode_
ec_ sec1_ der - Decodes a SEC1 / RFC 5915
ECPrivateKeyDER into a P-256 or P-384 key. - decode_
ed25519_ pkcs8_ der - Decodes a PKCS#8
PrivateKeyInfoDER containing an Ed25519 key. - decode_
mldsa_ pkcs8_ der - Decodes a PKCS#8
PrivateKeyInfoDER containing an ML-DSA private key. - decode_
p256_ pkcs8_ der - Decodes a P-256 secret key from PKCS#8 DER in the fixed 138-byte
PrivateKeyInfotemplate produced byencode_p256_pkcs8_der. - encode_
ed25519_ pkcs8_ der - Encodes an Ed25519 secret key as PKCS#8 DER in the fixed 48-byte
PrivateKeyInfoform defined by RFC 8410. - encode_
mldsa44_ pkcs8_ der - Encodes an ML-DSA-44 secret key as PKCS#8 DER in the RFC 9881 seed format.
- encode_
mldsa65_ pkcs8_ der - Encodes an ML-DSA-65 secret key as PKCS#8 DER in the RFC 9881 seed format.
- encode_
mldsa87_ pkcs8_ der - Encodes an ML-DSA-87 secret key as PKCS#8 DER in the RFC 9881 seed format.
- encode_
p256_ pkcs8_ der - Encodes a P-256 secret key as PKCS#8 DER (the fixed 138-byte
PrivateKeyInfotemplate used by OpenSSL forsecp256r1). - encode_
p384_ pkcs8_ der - Encodes a P-384 secret key as PKCS#8 DER in the fixed 185-byte
PrivateKeyInfoform used by OpenSSL forsecp384r1. - is_
rsa_ pkcs8_ der - Reports whether
deris a PKCS#8PrivateKeyInfowhoseAlgorithmIdentifierisrsaEncryption(1.2.840.113549.1.1.1).