Crate cellar_pkcs8[][src]

PKCS#8 is specified in RFC 5958.

Modules

der

Building blocks for parsing DER-encoded ASN.1 structures.

Structs

Document

A generated PKCS#8 document.

KeyRejected

An error parsing or validating a key.

Positive

A serialized positive integer.

Template

A template for constructing PKCS#8 documents.

Unspecified

An error with absolutely no details.

Enums

Version

Constants

EC_PUBLIC_KEY_P256_PKCS8_V1_TEMPLATE
EC_PUBLIC_KEY_P384_PKCS8_V1_TEMPLATE
ED25519_PKCS8_TEMPLATE
ELEM_MAX_BYTES
PKCS8_DOCUMENT_MAX_LEN

The maximum length of a PKCS#8 documents generated by ring for ECC keys.

PUBLIC_KEY_MAX_LEN
SCALAR_MAX_BYTES
SEED_MAX_BYTES

Functions

unwrap_key

Parses an unencrypted PKCS#8 private key, verifies that it is the right type of key, and returns the key value.

unwrap_key_

Parses an unencrypted PKCS#8 private key, verifies that it is the right type of key, and returns the key value.

wrap_key
wrap_sk