/optee_os/core/lib/libtomcrypt/src/mac/xcbc/ |
A D | xcbc_init.c | 41 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in xcbc_init() 52 if (keylen < 2UL*cipher_descriptor[cipher]->block_length) { in xcbc_init() 56 k1 = keylen - 2*cipher_descriptor[cipher]->block_length; in xcbc_init() 58 XMEMCPY(xcbc->K[1], key+k1, cipher_descriptor[cipher]->block_length); in xcbc_init() 59 …Y(xcbc->K[2], key+k1 + cipher_descriptor[cipher]->block_length, cipher_descriptor[cipher]->block_l… in xcbc_init() 62 k1 = cipher_descriptor[cipher]->block_length; in xcbc_init() 76 for (x = 0; x < cipher_descriptor[cipher]->block_length; x++) { in xcbc_init() 87 zeromem(xcbc->IV, cipher_descriptor[cipher]->block_length); in xcbc_init() 88 xcbc->blocksize = cipher_descriptor[cipher]->block_length; in xcbc_init()
|
A D | xcbc_process.c | 40 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher]->block_length) || (xcbc->blocksize < 0) || in xcbc_process()
|
A D | xcbc_done.c | 36 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher]->block_length) || (xcbc->blocksize < 0) || in xcbc_done()
|
/optee_os/core/lib/libtomcrypt/src/misc/padding/ |
A D | padding_pad.c | 24 unsigned char pad, block_length, r, t; in _padding_padded_length() local 28 block_length = mode & 0xff; in _padding_padded_length() 30 r = *length % block_length; in _padding_padded_length() 50 t %= (256 / block_length); in _padding_padded_length() 55 if (block_length != 16) { in _padding_padded_length() 64 pad = (t * block_length) - r; in _padding_padded_length() 67 pad = block_length; in _padding_padded_length()
|
/optee_os/core/lib/libtomcrypt/src/modes/ecb/ |
A D | ecb_decrypt.c | 36 if (len % cipher_descriptor[ecb->cipher]->block_length) { in ecb_decrypt() 42 …>cipher]->accel_ecb_decrypt(ct, pt, len / cipher_descriptor[ecb->cipher]->block_length, &ecb->key); in ecb_decrypt() 48 pt += cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt() 49 ct += cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt() 50 len -= cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt()
|
A D | ecb_encrypt.c | 36 if (len % cipher_descriptor[ecb->cipher]->block_length) { in ecb_encrypt() 42 …>cipher]->accel_ecb_encrypt(pt, ct, len / cipher_descriptor[ecb->cipher]->block_length, &ecb->key); in ecb_encrypt() 48 pt += cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt() 49 ct += cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt() 50 len -= cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt()
|
A D | ecb_start.c | 39 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
|
/optee_os/core/lib/libtomcrypt/src/mac/f9/ |
A D | f9_init.c | 39 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in f9_init() 54 zeromem(f9->IV, cipher_descriptor[cipher]->block_length); in f9_init() 55 zeromem(f9->ACC, cipher_descriptor[cipher]->block_length); in f9_init() 56 f9->blocksize = cipher_descriptor[cipher]->block_length; in f9_init()
|
A D | f9_done.c | 36 if ((f9->blocksize > cipher_descriptor[f9->cipher]->block_length) || (f9->blocksize < 0) || in f9_done()
|
A D | f9_process.c | 37 if ((f9->blocksize > cipher_descriptor[f9->cipher]->block_length) || (f9->blocksize < 0) || in f9_process()
|
/optee_os/core/lib/libtomcrypt/src/modes/ctr/ |
A D | ctr_start.c | 49 ctr->ctrlen = (ctr_mode & 255) ? (ctr_mode & 255) : cipher_descriptor[cipher]->block_length; in ctr_start() 50 if (ctr->ctrlen > cipher_descriptor[cipher]->block_length) { in ctr_start() 55 ctr->ctrlen = cipher_descriptor[cipher]->block_length - ctr->ctrlen; in ctr_start() 64 ctr->blocklen = cipher_descriptor[cipher]->block_length; in ctr_start()
|
/optee_os/core/lib/libtomcrypt/src/hashes/chc/ |
A D | chc.c | 50 kl = cipher_descriptor[cipher]->block_length; in chc_register() 62 if (kl != cipher_descriptor[cipher]->block_length) { in chc_register() 73 hash_descriptor[idx]->blocksize = cipher_descriptor[cipher]->block_length; in chc_register() 77 cipher_blocksize = cipher_descriptor[cipher]->block_length; in chc_register() 99 if (cipher_blocksize != cipher_descriptor[cipher_idx]->block_length) { in chc_init() 185 if (cipher_blocksize != cipher_descriptor[cipher_idx]->block_length) { in chc_process() 209 if (cipher_blocksize != cipher_descriptor[cipher_idx]->block_length) { in chc_done()
|
/optee_os/core/lib/libtomcrypt/src/mac/omac/ |
A D | omac_init.c | 41 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in omac_init() 47 switch (cipher_descriptor[cipher]->block_length) { in omac_init() 64 zeromem(omac->Lu[0], cipher_descriptor[cipher]->block_length); in omac_init()
|
/optee_os/core/lib/libtomcrypt/src/modes/f8/ |
A D | f8_start.c | 50 if (cipher_descriptor[cipher]->block_length % sizeof(LTC_FAST_TYPE)) { in f8_start() 58 f8->blocklen = cipher_descriptor[cipher]->block_length; in f8_start()
|
/optee_os/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_find_cipher_any.c | 38 …if (blocklen <= (int)cipher_descriptor[x]->block_length && keylen <= (int)cipher_descriptor[x]->ma… in find_cipher_any()
|
/optee_os/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_init.c | 114 if (cipher_descriptor[cipher]->block_length != 16) { in ocb3_init() 125 ocb->block_len = cipher_descriptor[cipher]->block_length; in ocb3_init()
|
A D | ocb3_decrypt.c | 41 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb3_decrypt()
|
A D | ocb3_encrypt.c | 41 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb3_encrypt()
|
/optee_os/core/lib/libtomcrypt/src/modes/cbc/ |
A D | cbc_start.c | 49 cbc->blocklen = cipher_descriptor[cipher]->block_length; in cbc_start()
|
/optee_os/core/lib/libtomcrypt/src/modes/ofb/ |
A D | ofb_start.c | 45 ofb->blocklen = cipher_descriptor[cipher]->block_length; in ofb_start()
|
/optee_os/core/lib/libtomcrypt/src/modes/xts/ |
A D | xts_init.c | 42 if (cipher_descriptor[cipher]->block_length != 16) { in xts_start()
|
/optee_os/core/lib/libtomcrypt/src/modes/cfb/ |
A D | cfb_start.c | 46 cfb->blocklen = cipher_descriptor[cipher]->block_length; in cfb_start()
|
/optee_os/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_init.c | 40 if (cipher_descriptor[cipher]->block_length != 16) { in ccm_init()
|
/optee_os/core/lib/libtomcrypt/src/encauth/ocb/ |
A D | ocb_encrypt.c | 37 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) { in ocb_encrypt()
|
A D | ocb_decrypt.c | 42 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb_decrypt()
|