Lines Matching defs:ecb

16 /* For CBC, direction of underlying ecb is the same as the cbc direction */
22 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_##_dir_##_mode(); \
23 ccmode_factory_cbc_##_dir_(&cbc_##_cipher_##_##_dir_, ecb); \
27 /* For CTR, only one direction, underlying ecb is always encrypt */
33 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_encrypt_mode(); \
34 ccmode_factory_ctr_crypt(&ctr_##_cipher_, ecb); \
44 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_encrypt_mode(); \
45 ccmode_factory_ofb_crypt(&ofb_##_cipher_, ecb); \
50 /* For CFB, the underlying ecb operation is encrypt for both directions */
56 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_encrypt_mode(); \
57 ccmode_factory_##_mode_##_##_dir_(&_mode_##_##_cipher_##_##_dir_, ecb); \
65 /* Fot XTS, you always need an ecb encrypt */
71 const struct ccmode_ecb *ecb=cc##_cipher_##_ecb_##_dir_##_mode(); \
74 ccmode_factory_xts_##_dir_(&xts##_cipher_##_##_dir_, ecb, ecb_enc); \
86 struct ccmode_ecb *ecb = cc3des_ecb_encrypt_mode();
87 ccmode_factory_cbc_encrypt(&cc3des_mode_encrypt, ecb);
119 const struct ccmode_ecb *ecb;
143 ecb decrypt mode implementation of some underlying algorithm as the ecb
147 const struct ccmode_ecb *ecb) {
148 struct ccmode_cbc cbc_decrypt = CCMODE_FACTORY_CBC_DECRYPT(ecb);
154 ecb encrypt mode implementation of some underlying algorithm as the ecb
158 const struct ccmode_ecb *ecb) {
159 struct ccmode_cbc cbc_encrypt = CCMODE_FACTORY_CBC_ENCRYPT(ecb);
173 const struct ccmode_ecb *ecb;
198 ecb encrypt mode implementation of some underlying algorithm as the ecb
202 const struct ccmode_ecb *ecb) {
203 struct ccmode_cfb cfb_decrypt = CCMODE_FACTORY_CFB_DECRYPT(ecb);
209 ecb encrypt mode implementation of some underlying algorithm as the ecb
213 const struct ccmode_ecb *ecb) {
214 struct ccmode_cfb cfb_encrypt = CCMODE_FACTORY_CFB_ENCRYPT(ecb);
228 const struct ccmode_ecb *ecb;
252 ecb decrypt mode implementation of some underlying algorithm as the ecb
256 const struct ccmode_ecb *ecb) {
257 struct ccmode_cfb8 cfb8_decrypt = CCMODE_FACTORY_CFB8_DECRYPT(ecb);
263 ecb encrypt mode implementation of some underlying algorithm as the ecb
267 const struct ccmode_ecb *ecb) {
268 struct ccmode_cfb8 cfb8_encrypt = CCMODE_FACTORY_CFB8_ENCRYPT(ecb);
279 const struct ccmode_ecb *ecb;
295 ecb encrypt mode implementation of some underlying algorithm as the ecb
299 const struct ccmode_ecb *ecb) {
300 struct ccmode_ctr ctr_crypt = CCMODE_FACTORY_CTR_CRYPT(ecb);
320 key must point to at least sizeof(CCMODE_GCM_KEY(ecb)) bytes of free
341 const struct ccmode_ecb *ecb;
389 ecb encrypt mode implementation of some underlying algorithm as the ecb
400 ecb encrypt mode implementation of some underlying algorithm as the ecb
417 const struct ccmode_ecb *ecb;
433 ecb encrypt mode implementation of some underlying algorithm as the ecb
437 const struct ccmode_ecb *ecb) {
438 struct ccmode_ofb ofb_crypt = CCMODE_FACTORY_OFB_CRYPT(ecb);
451 key must point to at least sizeof(CCMODE_OMAC_KEY(ecb)) bytes of free
458 const struct ccmode_ecb *ecb;
483 ecb decrypt mode implementation of some underlying algorithm as the ecb
487 const struct ccmode_ecb *ecb) {
488 struct ccmode_omac omac_decrypt = CCMODE_FACTORY_OMAC_DECRYPT(ecb);
494 ecb encrypt mode implementation of some underlying algorithm as the ecb
498 const struct ccmode_ecb *ecb) {
499 struct ccmode_omac omac_encrypt = CCMODE_FACTORY_OMAC_ENCRYPT(ecb);
514 const struct ccmode_ecb *ecb;
549 ecb decrypt mode implementation of some underlying algorithm as the ecb
553 const struct ccmode_ecb *ecb,
555 struct ccmode_xts xts_decrypt = CCMODE_FACTORY_XTS_DECRYPT(ecb, ecb_encrypt);
561 ecb encrypt mode implementation of some underlying algorithm as the ecb
565 const struct ccmode_ecb *ecb,
567 struct ccmode_xts xts_encrypt = CCMODE_FACTORY_XTS_ENCRYPT(ecb, ecb_encrypt);