GitHub

KeyAlgorithm

API reference for KeyAlgorithm.

A CryptoKey's algorithm: its name and the members the name has (an AES length in bits, an HMAC or RSA hash, an EC named_curve, an RSA modulus_length and public_exponent).

Attributes

AttributeTypeDescription
namestr
lengthint | None = None
hashstr | None = None
named_curvestr | None = None
modulus_lengthint | None = None
public_exponentbytes | None = None

Functions

__init__

__init__(*, name, length=None, hash=None, named_curve=None, modulus_length=None, public_exponent=None) -> None
ParameterTypeDescription
namestr
lengthint | None = None
hashstr | None = None
named_curvestr | None = None
modulus_lengthint | None = None
public_exponentbytes | None = None