Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/xform_enc.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
extern struct enc_xform enc_xform_aes_xts; | extern struct enc_xform enc_xform_aes_xts; | ||||
extern struct enc_xform enc_xform_arc4; | extern struct enc_xform enc_xform_arc4; | ||||
extern struct enc_xform enc_xform_camellia; | extern struct enc_xform enc_xform_camellia; | ||||
extern struct enc_xform enc_xform_chacha20; | extern struct enc_xform enc_xform_chacha20; | ||||
extern struct enc_xform enc_xform_ccm; | extern struct enc_xform enc_xform_ccm; | ||||
struct aes_icm_ctx { | struct aes_icm_ctx { | ||||
u_int32_t ac_ek[4*(RIJNDAEL_MAXNR + 1)]; | u_int32_t ac_ek[4*(RIJNDAEL_MAXNR + 1)]; | ||||
/* ac_block is initalized to IV */ | /* ac_block is initialized to IV */ | ||||
u_int8_t ac_block[AESICM_BLOCKSIZE]; | u_int8_t ac_block[AESICM_BLOCKSIZE]; | ||||
int ac_nr; | int ac_nr; | ||||
}; | }; | ||||
struct aes_xts_ctx { | struct aes_xts_ctx { | ||||
rijndael_ctx key1; | rijndael_ctx key1; | ||||
rijndael_ctx key2; | rijndael_ctx key2; | ||||
u_int8_t tweak[AES_XTS_BLOCKSIZE]; | u_int8_t tweak[AES_XTS_BLOCKSIZE]; | ||||
}; | }; | ||||
#endif /* _CRYPTO_XFORM_ENC_H_ */ | #endif /* _CRYPTO_XFORM_ENC_H_ */ |