Module krb_crypto

kerberos crypto module (based on rfc3961/3962).

Description

kerberos crypto module (based on rfc3961/3962).

Data Types

base_key()

abstract datatype: base_key()

cipher_options()

cipher_options() = #{usage => usage()}

ck_key()

abstract datatype: ck_key()

ctype()

ctype() = hmac_sha1_aes128 | hmac_sha1_aes256 | hmac_sha256_aes128 | hmac_sha384_aes256 | hmac_sha1_des3_kd | crc32 | sha1 | md4 | md5

etype()

etype() = des_crc | des_md4 | des_md5 | des3_md5 | des3_sha1 | aes128_hmac_sha1 | aes256_hmac_sha1 | rc4_hmac | rc4_hmac_exp | aes128_hmac_sha256 | aes256_hmac_sha384 | des_sha1 | des3_raw

protocol_key()

protocol_key() = {Kc::binary(), Ke::binary(), Ki::binary()}

usage()

usage() = as_req_pa_enc_ts | kdc_rep_ticket | as_rep_encpart | tgs_req_ad_sesskey | tgs_req_ad_subkey | tgs_req_auth_cksum | tgs_req_auth | tgs_rep_encpart_sesskey | tgs_rep_encpart_subkey | ap_req_auth_cksum | ap_req_auth | ap_rep_encpart | krb_priv_encpart | krb_cred_encpart | krb_safe_cksum | app_data_encrypt | app_data_cksum | krb_error_cksum | ad_kdcissued_cksum | ad_mte | ad_ite | gss_acceptor_seal | gss_acceptor_sign | gss_initiator_seal | gss_initiator_sign | gss_new_checksum | gss_3des_seal | gss_3des_sign | gss_3des_seq

Function Index

atom_to_ctype/1
atom_to_etype/1
base_key_to_ck_key/1
base_key_to_triad/2
checksum/3
crc/1
crc/2
crc_unkey/3
ctype_for_etype/1
ctype_to_atom/1
decrypt/2
decrypt/3
default_etypes/0
encrypt/2
encrypt/3
etype_to_atom/1
hash_unkey/4
key_ctype/1
key_etype/1
random_to_key/1
random_to_key/2
string_to_key/3

Function Details

atom_to_ctype/1

atom_to_ctype(A::ctype()) -> integer()

atom_to_etype/1

atom_to_etype(A::etype()) -> integer()

base_key_to_ck_key/1

base_key_to_ck_key(Krb_base_key::base_key()) -> ck_key()

base_key_to_triad/2

base_key_to_triad(Krb_base_key::base_key(), U::usage()) -> protocol_key()

checksum/3

checksum(Krb_ck_key::ck_key(), Data::binary(), Opts::cipher_options()) -> binary()

crc/1

crc(B::binary()) -> binary()

crc/2

crc(State::integer(), B::binary()) -> integer()

crc_unkey/3

crc_unkey(Ki, Data, Len) -> any()

ctype_for_etype/1

ctype_for_etype(E::etype()) -> ctype()

ctype_to_atom/1

ctype_to_atom(N::integer()) -> ctype()

decrypt/2

decrypt(Krb_base_key::base_key(), Data::binary()) -> binary()

decrypt/3

decrypt(Krb_base_key::base_key(), Data::binary(), Opts0::cipher_options()) -> binary()

default_etypes/0

default_etypes() -> [etype()]

encrypt/2

encrypt(Krb_base_key::base_key(), Data::binary()) -> binary()

encrypt/3

encrypt(Krb_base_key::base_key(), Data::binary(), Opts0::cipher_options()) -> binary()

etype_to_atom/1

etype_to_atom(N::integer()) -> etype()

hash_unkey/4

hash_unkey(Algo, Ki, Data, Len) -> any()

key_ctype/1

key_ctype(Krb_ck_key::ck_key()) -> ctype()

key_etype/1

key_etype(Krb_base_key::base_key()) -> etype()

random_to_key/1

random_to_key(ET::etype()) -> base_key()

random_to_key/2

random_to_key(E::etype(), Data::binary()) -> base_key()

string_to_key/3

string_to_key(E::etype(), String::binary(), Salt::binary()) -> base_key()


Generated by EDoc