Lines Matching refs:_cipher_
52 #define CCMODE_CBC_FACTORY(_cipher_, _dir_) \ argument
53 static CC_READ_ONLY_LATE(struct ccmode_cbc) cbc_##_cipher_##_##_dir_; \
55 const struct ccmode_cbc *cc##_cipher_##_cbc_##_dir_##_mode(void) \
57 if (!CC_CACHE_DESCRIPTORS || NULL == cbc_##_cipher_##_##_dir_.init) { \
58 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_##_dir_##_mode(); \
59 ccmode_factory_cbc_##_dir_(&cbc_##_cipher_##_##_dir_, ecb); \
61 return &cbc_##_cipher_##_##_dir_; \
65 #define CCMODE_CTR_FACTORY(_cipher_) \ argument
66 static struct ccmode_ctr ctr_##_cipher_; \
68 const struct ccmode_ctr *cc##_cipher_##_ctr_crypt_mode(void) \
70 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_encrypt_mode(); \
71 ccmode_factory_ctr_crypt(&ctr_##_cipher_, ecb); \
72 return &ctr_##_cipher_; \
76 #define CCMODE_OFB_FACTORY(_cipher_) \ argument
77 static struct ccmode_ofb ofb_##_cipher_; \
79 const struct ccmode_ofb *cc##_cipher_##_ofb_crypt_mode(void) \
81 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_encrypt_mode(); \
82 ccmode_factory_ofb_crypt(&ofb_##_cipher_, ecb); \
83 return &ofb_##_cipher_; \
88 #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) { \
94 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_encrypt_mode(); \
95 ccmode_factory_##_mode_##_##_dir_(&_mode_##_##_cipher_##_##_dir_, ecb); \
97 return &_mode_##_##_cipher_##_##_dir_; \