Constants#
Global constants.
- class crypto_condor.constants.Modes#
Bases:
TypedDict
Modes that must be declared for each primitive.
- audit: bool | None#
- method: bool | None#
- output: bool | None#
- wrapper: bool | None#
- harness: bool | None#
- enum crypto_condor.constants.Primitive(value)#
Bases:
StrEnum
Supported primitives.
- Member Type:
str
Valid values are as follows:
- AES = <Primitive.AES: 'AES'>#
- CHACHA20 = <Primitive.CHACHA20: 'ChaCha20'>#
- DILITHIUM = <Primitive.DILITHIUM: 'Dilithium'>#
- ECDH = <Primitive.ECDH: 'ECDH'>#
- ECDSA = <Primitive.ECDSA: 'ECDSA'>#
- FALCON = <Primitive.FALCON: 'Falcon'>#
- HMAC = <Primitive.HMAC: 'HMAC'>#
- KYBER = <Primitive.KYBER: 'Kyber'>#
- RSASSA = <Primitive.RSASSA: 'RSASSA'>#
- RSAES = <Primitive.RSAES: 'RSAES'>#
- SHA = <Primitive.SHA: 'SHA'>#
- SHAKE = <Primitive.SHAKE: 'SHAKE'>#
- SPHINCS = <Primitive.SPHINCS: 'SPHINCS+'>#
The
Enum
and its members also have the following methods:- get_languages()#
Returns the primitive’s Wrapper enum.
The Wrapper enum defines the wrapper languages supported by that primitive.
- crypto_condor.constants.SUPPORTED_MODES: dict[Primitive, Modes]#
Primitives and their supported CLI modes.
- crypto_condor.constants.SUPPORTED_PRIMITIVES#
A list of all supported primitives.