Expand description
Common data structures used by lakers and its dependent crates
This crate is separate from lakers to avoid circular dependencies that would otherwise arise from the pattern in which lakers-ead combined the main crate with variations of the protocol’s EAD handling. As its types will then likely move over into the main lakers crate, it is recommended to use them through the public re-export there wherever possible.
Structs§
- CBOR
Decoder - Completed
- ConnId
- Value of C_R or C_I, as chosen by ourself or the peer.
- Credential
- A credential for use in EDHOC
- EADItem
- Edhoc
Buffer - A fixed-size (but parameterized) buffer for EDHOC messages.
- Edhoc
Message Buffer - An owned u8 vector of a limited length
- ErrCode
- Representation of an EDHOC ERR_CODE
- IdCred
- A value of ID_CRED_x: a credential identifier.
- Initiator
Start - Preparing
M3 - Processed
M2 - Processed
M3 - Processing
M1 - Processing
M2 - Processing
M3 - Responder
Start - WaitM2
- WaitM3
- WaitM4
Enums§
- CBOR
Error - Credential
Key - Credential
Transfer - Credential
Type - EDHOC
Error - EDHOC
Method - EDHOC
Suite - Edhoc
Buffer Error - IdCred
Type - Message
Buffer Error
Constants§
- AES_
CCM_ IV_ LEN - AES_
CCM_ KEY_ LEN - AES_
CCM_ TAG_ LEN - CBOR_
BYTE_ STRING - CBOR_
MAJOR_ ARRAY - CBOR_
MAJOR_ ARRAY_ MAX - CBOR_
MAJOR_ BYTE_ STRING - CBOR_
MAJOR_ BYTE_ STRING_ MAX - CBOR_
MAJOR_ MAP - CBOR_
MAJOR_ TEXT_ STRING - CBOR_
NEG_ INT_ 1BYTE_ END - CBOR_
NEG_ INT_ 1BYTE_ START - CBOR_
TEXT_ STRING - CBOR_
UINT_ 1BYTE - CBOR_
UINT_ 1BYTE_ END - CBOR_
UINT_ 1BYTE_ START - EDHOC_
METHOD - EDHOC_
SUITES - EDHOC_
SUPPORTED_ SUITES - ENCODED_
VOUCHER_ LEN - ENC_
STRUCTURE_ LEN - ID_
CRED_ LEN - KCCS_
LABEL - KCSS_
LABEL Deprecated - KID_
LABEL - MAC_
LENGTH - MAC_
LENGTH_ 2 - MAC_
LENGTH_ 3 - MAX_
BUFFER_ LEN - MAX_
EAD_ SIZE_ LEN - MAX_
INFO_ LEN - MAX_
KDF_ CONTEXT_ LEN - MAX_
KDF_ LABEL_ LEN - MAX_
MESSAGE_ SIZE_ LEN - MAX_
SUITES_ LEN - P256_
ELEM_ LEN - SHA256_
DIGEST_ LEN - SUITES_
LEN - SUPPORTED_
SUITES_ LEN
Traits§
- Crypto
- Interface between the lakers crate and any implementations of the required crypto primitives.
Functions§
- decode_
plaintext_ 2 - decode_
plaintext_ 3 - decode_
plaintext_ 4 - encode_
info - parse_
ead - parse_
message_ 1 - parse_
message_ 2 - parse_
suites_ i - prepare_
suites_ i - Returns the SUITES_I array, or an error if selected_suite is not supported.
Type Aliases§
- Buffer
Ciphertext2 - Buffer
Ciphertext3 - Buffer
Ciphertext4 - Buffer
Cred - Buffer
IdCred - Buffer
Kid - Buffer
Message1 - Buffer
Message2 - Buffer
Message3 - Buffer
Message4 - Buffer
Plaintext2 - Buffer
Plaintext3 - Buffer
Plaintext4 - Bytes8
- Bytes
CcmIv Len - Bytes
CcmKey Len - Bytes
Ead2 - Bytes
EncStructure Len - Bytes
Encoded Voucher - Bytes
Hash Len - Bytes
IdCred - Bytes
KeyAE S128 - Bytes
KeyE C2 - Bytes
Mac - Bytes
Mac2 - Bytes
Mac3 - Bytes
MaxBuffer - Bytes
MaxContext Buffer - Bytes
MaxInfo Buffer - Bytes
MaxLabel Buffeer - Bytes
P256 Elem Len - Bytes
Suites - Bytes
Supported Suites - EADMessage
Buffer