Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/xform_auth.h
Show All 36 Lines | |||||
#include <sys/md5.h> | #include <sys/md5.h> | ||||
#include <crypto/sha1.h> | #include <crypto/sha1.h> | ||||
#include <crypto/sha2/sha224.h> | #include <crypto/sha2/sha224.h> | ||||
#include <crypto/sha2/sha256.h> | #include <crypto/sha2/sha256.h> | ||||
#include <crypto/sha2/sha384.h> | #include <crypto/sha2/sha384.h> | ||||
#include <crypto/sha2/sha512.h> | #include <crypto/sha2/sha512.h> | ||||
#include <opencrypto/rmd160.h> | #include <opencrypto/rmd160.h> | ||||
#include <opencrypto/gmac.h> | #include <opencrypto/gmac.h> | ||||
#include <opencrypto/ccm-cbc.h> | |||||
#include <opencrypto/cryptodev.h> | #include <opencrypto/cryptodev.h> | ||||
#include <opencrypto/xform_userland.h> | #include <opencrypto/xform_userland.h> | ||||
/* XXX use a define common with other hash stuff ! */ | /* XXX use a define common with other hash stuff ! */ | ||||
#define AH_ALEN_MAX 64 /* max authenticator hash length */ | #define AH_ALEN_MAX 64 /* max authenticator hash length */ | ||||
/* Declarations */ | /* Declarations */ | ||||
Show All 27 Lines | |||||
extern struct auth_hash auth_hash_sha2_384; | extern struct auth_hash auth_hash_sha2_384; | ||||
extern struct auth_hash auth_hash_sha2_512; | extern struct auth_hash auth_hash_sha2_512; | ||||
extern struct auth_hash auth_hash_nist_gmac_aes_128; | extern struct auth_hash auth_hash_nist_gmac_aes_128; | ||||
extern struct auth_hash auth_hash_nist_gmac_aes_192; | extern struct auth_hash auth_hash_nist_gmac_aes_192; | ||||
extern struct auth_hash auth_hash_nist_gmac_aes_256; | extern struct auth_hash auth_hash_nist_gmac_aes_256; | ||||
extern struct auth_hash auth_hash_blake2b; | extern struct auth_hash auth_hash_blake2b; | ||||
extern struct auth_hash auth_hash_blake2s; | extern struct auth_hash auth_hash_blake2s; | ||||
extern struct auth_hash auth_hash_poly1305; | extern struct auth_hash auth_hash_poly1305; | ||||
extern struct auth_hash auth_hash_ccm_cbc_mac_128; | |||||
extern struct auth_hash auth_hash_ccm_cbc_mac_192; | |||||
extern struct auth_hash auth_hash_ccm_cbc_mac_256; | |||||
union authctx { | union authctx { | ||||
MD5_CTX md5ctx; | MD5_CTX md5ctx; | ||||
SHA1_CTX sha1ctx; | SHA1_CTX sha1ctx; | ||||
RMD160_CTX rmd160ctx; | RMD160_CTX rmd160ctx; | ||||
SHA224_CTX sha224ctx; | SHA224_CTX sha224ctx; | ||||
SHA256_CTX sha256ctx; | SHA256_CTX sha256ctx; | ||||
SHA384_CTX sha384ctx; | SHA384_CTX sha384ctx; | ||||
SHA512_CTX sha512ctx; | SHA512_CTX sha512ctx; | ||||
struct aes_gmac_ctx aes_gmac_ctx; | struct aes_gmac_ctx aes_gmac_ctx; | ||||
struct aes_cbc_mac_ctx aes_cbc_mac_ctx; | |||||
}; | }; | ||||
#endif /* _CRYPTO_XFORM_AUTH_H_ */ | #endif /* _CRYPTO_XFORM_AUTH_H_ */ |