[−][src]Crate kerberos_crypto
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
etypes | Encryption types used by Kerberos protocol. |
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 |
Constants
AES128_KEY_SIZE | Size of AES-128 key, 16 bytes |
AES256_KEY_SIZE | Size of AES-256 key, 32 bytes |
RC4_KEY_SIZE | Size of RC4 key , 16 bytes |
Traits
KerberosCipher | Trait implemented by the ciphers of this library |
Functions
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 |
Type Definitions
Result | Result that encapsulates the Error type of this library |