1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! # 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

mod algorithms;
pub use algorithms::aes_hmac_sha1;
pub use algorithms::rc4_hmac_md5;

mod cryptography;
pub use cryptography::{
    AesSizes, AES128_KEY_SIZE, AES128_SEED_SIZE, AES256_KEY_SIZE,
    AES256_SEED_SIZE, AES_BLOCK_SIZE, AES_MAC_SIZE, RC4_KEY_SIZE
};

mod utils;

mod error;
pub use error::{Error, Result};

mod checksum;
pub use checksum::{checksum_hmac_md5, checksum_sha_aes};

mod ciphers;
pub use ciphers::{new_kerberos_cipher, AesCipher, KerberosCipher, Rc4Cipher};

mod helpers;
pub use helpers::{is_supported_etype, supported_etypes};

mod key;
pub use key::Key;