Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/xform_auth.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | struct auth_hash { | ||||
uint16_t blocksize; | uint16_t blocksize; | ||||
void (*Init) (void *); | void (*Init) (void *); | ||||
void (*Setkey) (void *, const uint8_t *, u_int); | void (*Setkey) (void *, const uint8_t *, u_int); | ||||
void (*Reinit) (void *, const uint8_t *, u_int); | void (*Reinit) (void *, const uint8_t *, u_int); | ||||
int (*Update) (void *, const void *, u_int); | int (*Update) (void *, const void *, u_int); | ||||
void (*Final) (uint8_t *, void *); | void (*Final) (uint8_t *, void *); | ||||
}; | }; | ||||
extern struct auth_hash auth_hash_null; | extern const struct auth_hash auth_hash_null; | ||||
extern struct auth_hash auth_hash_hmac_sha1; | extern const struct auth_hash auth_hash_hmac_sha1; | ||||
extern struct auth_hash auth_hash_hmac_ripemd_160; | extern const struct auth_hash auth_hash_hmac_ripemd_160; | ||||
extern struct auth_hash auth_hash_hmac_sha2_224; | extern const struct auth_hash auth_hash_hmac_sha2_224; | ||||
extern struct auth_hash auth_hash_hmac_sha2_256; | extern const struct auth_hash auth_hash_hmac_sha2_256; | ||||
extern struct auth_hash auth_hash_hmac_sha2_384; | extern const struct auth_hash auth_hash_hmac_sha2_384; | ||||
extern struct auth_hash auth_hash_hmac_sha2_512; | extern const struct auth_hash auth_hash_hmac_sha2_512; | ||||
extern struct auth_hash auth_hash_sha1; | extern const struct auth_hash auth_hash_sha1; | ||||
extern struct auth_hash auth_hash_sha2_224; | extern const struct auth_hash auth_hash_sha2_224; | ||||
extern struct auth_hash auth_hash_sha2_256; | extern const struct auth_hash auth_hash_sha2_256; | ||||
extern struct auth_hash auth_hash_sha2_384; | extern const struct auth_hash auth_hash_sha2_384; | ||||
extern struct auth_hash auth_hash_sha2_512; | extern const struct auth_hash auth_hash_sha2_512; | ||||
extern struct auth_hash auth_hash_nist_gmac_aes_128; | extern const struct auth_hash auth_hash_nist_gmac_aes_128; | ||||
extern struct auth_hash auth_hash_nist_gmac_aes_192; | extern const struct auth_hash auth_hash_nist_gmac_aes_192; | ||||
extern struct auth_hash auth_hash_nist_gmac_aes_256; | extern const struct auth_hash auth_hash_nist_gmac_aes_256; | ||||
extern struct auth_hash auth_hash_blake2b; | extern const struct auth_hash auth_hash_blake2b; | ||||
extern struct auth_hash auth_hash_blake2s; | extern const struct auth_hash auth_hash_blake2s; | ||||
extern struct auth_hash auth_hash_poly1305; | extern const struct auth_hash auth_hash_poly1305; | ||||
extern struct auth_hash auth_hash_ccm_cbc_mac_128; | extern const struct auth_hash auth_hash_ccm_cbc_mac_128; | ||||
extern struct auth_hash auth_hash_ccm_cbc_mac_192; | extern const struct auth_hash auth_hash_ccm_cbc_mac_192; | ||||
extern struct auth_hash auth_hash_ccm_cbc_mac_256; | extern const struct auth_hash auth_hash_ccm_cbc_mac_256; | ||||
extern struct auth_hash auth_hash_chacha20_poly1305; | extern const struct auth_hash auth_hash_chacha20_poly1305; | ||||
union authctx { | union authctx { | ||||
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; | struct aes_cbc_mac_ctx aes_cbc_mac_ctx; | ||||
}; | }; | ||||
#endif /* _CRYPTO_XFORM_AUTH_H_ */ | #endif /* _CRYPTO_XFORM_AUTH_H_ */ |