Expand description
§Kerberos crypto
Library to implement the cryptographic algorithms involved in the kerberos protocol.
The library provides different ciphers. The ciphers are classes which implements the diferent algorithms. All of them implement the KerberosCipher trait.
§Supported algorithms
- RC4-HMAC
- AES128-CTS-HMAC-SHA1-96
- AES256-CTS-HMAC-SHA1-96
Modules§
- aes_
hmac_ sha1 - This module provides routines to encrypt/decrypt by using the AES algorithm with HMAC-SHA1 required by AES128_CTS_HMAC_SHA1_96 and AES256_CTS_HMAC_SHA1_96.
- rc4_
hmac_ md5 - This module provides routines to encrypt/decrypt by using the RC4 algorithm with HMAC-MD5 required by RC4_HMAC
Structs§
- AesCipher
- Cipher for the AES algorithm, used by the encryption types AES128_CTS_HMAC_SHA1_96 and AES256_CTS_HMAC_SHA1_96
- Rc4Cipher
- Cipher for the RC4 algorithm, used by the encryption type RC4_HMAC
Enums§
- AesSizes
- Enum to provide asociated parameters with each size of the AES algorithm
- Error
- Error raised by the routines of this library
- Key
- Encapsules the possible keys used by this Kerberos implementation. Each key can be used by a different cryptographic algorithm.
Constants§
- AES128_
KEY_ SIZE - Size of AES-128 key, 16 bytes
- AES128_
SEED_ SIZE - AES256_
KEY_ SIZE - Size of AES-256 key, 32 bytes
- AES256_
SEED_ SIZE - AES_
BLOCK_ SIZE - AES_
MAC_ SIZE - RC4_
KEY_ SIZE - Size of RC4 key , 16 bytes
Traits§
- Kerberos
Cipher - Trait implemented by the ciphers of this library
Functions§
- checksum_
hmac_ md5 - checksum_
sha_ aes - is_
supported_ etype - Helper to check is an encryption type is supported by this library
- new_
kerberos_ cipher - Creates the appropiate cipher based on the encryption type specified
- supported_
etypes - Returns a vector with the etypes of the supported algorithms by this library
Type Aliases§
- Result
- Result that encapsulates the Error type of this library