Structs§
- Alg
- Other
Prime Info - Pkcs8
Algorithm Identifier - Pkcs8
Private KeyInfo - RsaPrivate
KeyAsn1 - A struct representing the full 9-field PKCS#1
RSAPrivateKeystructure. - RsaPrivate
KeyPkcs1 V0 - A struct representing an 8-field PKCS#1
RSAPrivateKeystructure, for compatibility with encoders that omit theversionfield when it is 0. - Sec1
EcPrivate Key - Tpm2sh
AlgId - A newtype wrapper to provide a project-specific
Displayimplementation forTpmAlgId. - TpmAuth
Policy - A TPM authorization policy struct that is directly compatible with ASN.1 DER encoding.
- TpmKey
- A TPM key struct that is directly compatible with ASN.1 DER encoding.
- TpmKey
Template - A template for creating a new TPM key object.
- TpmPolicy
- A TPM policy struct that is directly compatible with ASN.1 DER encoding.
Enums§
- AlgInfo
- AnyKey
- External
Key - KeyError
- Tpm2sh
EccCurve - A local wrapper enum for
TpmEccCurveto allowstrumderives.
Constants§
- OID_
ECDSA_ WITH_ SHA256 - OID_
ECDSA_ WITH_ SHA384 - OID_
ECDSA_ WITH_ SHA512 - OID_
EC_ PUBLIC_ KEY - OID_
IMPORTABLE_ KEY - OID_
LOADABLE_ KEY - OID_
RSA_ ENCRYPTION - OID_
SEALED_ DATA - OID_
SHA1_ WITH_ RSA_ ENCRYPTION - OID_
SHA256_ WITH_ RSA_ ENCRYPTION - OID_
SHA384_ WITH_ RSA_ ENCRYPTION - OID_
SHA512_ WITH_ RSA_ ENCRYPTION - SECP_
256_ R_ 1 - SECP_
384_ R_ 1 - SECP_
521_ R_ 1
Functions§
- ecc_
to_ public - Converts ECC public key bytes to a
TpmtPublicstructure. - format_
alg_ from_ public - Formats a human-readable algorithm string from a
TpmtPublicstructure. - from_
str_ to_ alg_ id - Converts string to
TpmAlgId. - parse_
ecc_ from_ der - Parses a SEC1 DER-encoded ECC private key.
- parse_
rsa_ from_ der - Parses a DER-encoded RSA private key, supporting only the PKCS#1 format.
- rsa_
to_ public - Converts an
RsaPrivateKeyto aTpmtPublicstructure.