Home
last modified time | relevance | path

Searched refs:_mode_ (Results 1 – 2 of 2) sorted by relevance

/xnu-11215.61.5/EXTERNAL_HEADERS/corecrypto/
H A Dcccmac.h37 #define cccmac_iv_size(_mode_) ((_mode_)->block_size) argument
38 #define cccmac_cbc_size(_mode_) ((_mode_)->size) argument
40 #define cccmac_ctx_size(_mode_) (cccmac_hdr_size + cccmac_iv_size(_mode_) + cccmac_cbc_size(_mode_)) argument
41 #define cccmac_ctx_n(_mode_) ccn_nof_size(cccmac_ctx_size(_mode_)) argument
43 #define cccmac_mode_decl(_mode_, _name_) cc_ctx_decl_vla(struct cccmac_ctx, cccmac_ctx_size(_mode_)… argument
44 #define cccmac_mode_clear(_mode_, _name_) cc_clear(cccmac_ctx_size(_mode_), _name_) argument
47 #define cccmac_mode_ctx_start(_mode_, HC) (HC->ctx) argument
50 #define cccmac_mode_sym_ctx(_mode_, HC) (cccbc_ctx *)(cccmac_mode_ctx_start(_mode_, HC)) argument
51 #define cccmac_mode_iv(_mode_, HC) (cccbc_iv *)(cccmac_mode_ctx_start(_mode_, HC)+cccmac_cbc_si… argument
/xnu-11215.61.5/osfmk/corecrypto/
H A Dccmode_internal.h88 #define CCMODE_CFB_FACTORY(_cipher_, _mode_, _dir_) \ argument
89 static CC_READ_ONLY_LATE(struct ccmode_##_mode_) _mode_##_##_cipher_##_##_dir_; \
91 const struct ccmode_##_mode_ *cc##_cipher_##_##_mode_##_##_dir_##_mode(void) \
93 if (!CC_CACHE_DESCRIPTORS || NULL == _mode_##_##_cipher_##_##_dir_.init) { \
95 ccmode_factory_##_mode_##_##_dir_(&_mode_##_##_cipher_##_##_dir_, ecb); \
97 return &_mode_##_##_cipher_##_##_dir_; \