/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/xcbc/ |
A D | xcbc_init.c | 34 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in xcbc_init() 45 if (keylen < 2UL*cipher_descriptor[cipher]->block_length) { in xcbc_init() 49 k1 = keylen - 2*cipher_descriptor[cipher]->block_length; in xcbc_init() 51 XMEMCPY(xcbc->K[1], key+k1, cipher_descriptor[cipher]->block_length); in xcbc_init() 52 …Y(xcbc->K[2], key+k1 + cipher_descriptor[cipher]->block_length, cipher_descriptor[cipher]->block_l… in xcbc_init() 55 k1 = cipher_descriptor[cipher]->block_length; in xcbc_init() 69 for (x = 0; x < cipher_descriptor[cipher]->block_length; x++) { in xcbc_init() 80 zeromem(xcbc->IV, cipher_descriptor[cipher]->block_length); in xcbc_init() 81 xcbc->blocksize = cipher_descriptor[cipher]->block_length; in xcbc_init()
|
A D | xcbc_process.c | 33 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher]->block_length) || (xcbc->blocksize < 0) || in xcbc_process()
|
A D | xcbc_done.c | 29 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher]->block_length) || (xcbc->blocksize < 0) || in xcbc_done()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ecb/ |
A D | ecb_decrypt.c | 29 if (len % cipher_descriptor[ecb->cipher]->block_length) { in ecb_decrypt() 35 …>cipher]->accel_ecb_decrypt(ct, pt, len / cipher_descriptor[ecb->cipher]->block_length, &ecb->key); in ecb_decrypt() 41 pt += cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt() 42 ct += cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt() 43 len -= cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt()
|
A D | ecb_encrypt.c | 29 if (len % cipher_descriptor[ecb->cipher]->block_length) { in ecb_encrypt() 35 …>cipher]->accel_ecb_encrypt(pt, ct, len / cipher_descriptor[ecb->cipher]->block_length, &ecb->key); in ecb_encrypt() 41 pt += cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt() 42 ct += cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt() 43 len -= cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt()
|
A D | ecb_start.c | 32 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/ |
A D | padding_pad.c | 17 unsigned char pad, block_length, r, t; in s_padding_padded_length() local 21 block_length = mode & 0xff; in s_padding_padded_length() 23 r = *length % block_length; in s_padding_padded_length() 44 t %= (256 / block_length); in s_padding_padded_length() 49 if (block_length != 16) { in s_padding_padded_length() 58 pad = (t * block_length) - r; in s_padding_padded_length() 61 pad = block_length; in s_padding_padded_length()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/f9/ |
A D | f9_init.c | 32 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in f9_init() 47 zeromem(f9->IV, cipher_descriptor[cipher]->block_length); in f9_init() 48 zeromem(f9->ACC, cipher_descriptor[cipher]->block_length); in f9_init() 49 f9->blocksize = cipher_descriptor[cipher]->block_length; in f9_init()
|
A D | f9_done.c | 29 if ((f9->blocksize > cipher_descriptor[f9->cipher]->block_length) || (f9->blocksize < 0) || in f9_done()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ctr/ |
A D | ctr_start.c | 42 ctr->ctrlen = (ctr_mode & 255) ? (ctr_mode & 255) : cipher_descriptor[cipher]->block_length; in ctr_start() 43 if (ctr->ctrlen > cipher_descriptor[cipher]->block_length) { in ctr_start() 48 ctr->ctrlen = cipher_descriptor[cipher]->block_length - ctr->ctrlen; in ctr_start() 57 ctr->blocklen = cipher_descriptor[cipher]->block_length; in ctr_start()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/chc/ |
A D | chc.c | 43 kl = cipher_descriptor[cipher]->block_length; in chc_register() 55 if (kl != cipher_descriptor[cipher]->block_length) { in chc_register() 66 hash_descriptor[idx]->blocksize = cipher_descriptor[cipher]->block_length; in chc_register() 70 cipher_blocksize = cipher_descriptor[cipher]->block_length; in chc_register() 92 if (cipher_blocksize != cipher_descriptor[cipher_idx]->block_length) { in chc_init() 178 if (cipher_blocksize != cipher_descriptor[cipher_idx]->block_length) { in chc_process() 202 if (cipher_blocksize != cipher_descriptor[cipher_idx]->block_length) { in chc_done()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/omac/ |
A D | omac_init.c | 34 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in omac_init() 40 switch (cipher_descriptor[cipher]->block_length) { in omac_init() 57 zeromem(omac->Lu[0], cipher_descriptor[cipher]->block_length); in omac_init()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/f8/ |
A D | f8_start.c | 43 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in f8_start() 51 f8->blocklen = cipher_descriptor[cipher]->block_length; in f8_start()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_find_cipher_any.c | 31 …if (blocklen <= (int)cipher_descriptor[x]->block_length && keylen <= (int)cipher_descriptor[x]->ma… in find_cipher_any()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/cbc/ |
A D | cbc_start.c | 42 cbc->blocklen = cipher_descriptor[cipher]->block_length; in cbc_start()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ofb/ |
A D | ofb_start.c | 38 ofb->blocklen = cipher_descriptor[cipher]->block_length; in ofb_start()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/xts/ |
A D | xts_init.c | 35 if (cipher_descriptor[cipher]->block_length != 16) { in xts_start()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/cfb/ |
A D | cfb_start.c | 39 cfb->blocklen = cipher_descriptor[cipher]->block_length; in cfb_start()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_init.c | 33 if (cipher_descriptor[cipher]->block_length != 16) { in ccm_init()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb/ |
A D | ocb_encrypt.c | 30 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) { in ocb_encrypt()
|
A D | ocb_decrypt.c | 35 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb_decrypt()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_init.c | 107 if (cipher_descriptor[cipher]->block_length != 16) { in ocb3_init() 118 ocb->block_len = cipher_descriptor[cipher]->block_length; in ocb3_init()
|
A D | ocb3_decrypt.c | 34 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb3_decrypt()
|
A D | ocb3_encrypt.c | 34 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb3_encrypt()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/lrw/ |
A D | lrw_start.c | 51 if (cipher_descriptor[cipher]->block_length != 16) { in lrw_start()
|