Home
last modified time | relevance | path

Searched refs:block_length (Results 1 – 25 of 39) sorted by relevance

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_init.c34 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 Dxcbc_process.c33 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher]->block_length) || (xcbc->blocksize < 0) || in xcbc_process()
A Dxcbc_done.c29 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 Decb_decrypt.c29 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 Decb_encrypt.c29 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 Decb_start.c32 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_pad.c17 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 Df9_init.c32 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 Df9_done.c29 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 Dctr_start.c42 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 Dchc.c43 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 Domac_init.c34 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 Df8_start.c43 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 Dcrypt_find_cipher_any.c31 …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 Dcbc_start.c42 cbc->blocklen = cipher_descriptor[cipher]->block_length; in cbc_start()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ofb/
A Dofb_start.c38 ofb->blocklen = cipher_descriptor[cipher]->block_length; in ofb_start()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/xts/
A Dxts_init.c35 if (cipher_descriptor[cipher]->block_length != 16) { in xts_start()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/cfb/
A Dcfb_start.c39 cfb->blocklen = cipher_descriptor[cipher]->block_length; in cfb_start()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_init.c33 if (cipher_descriptor[cipher]->block_length != 16) { in ccm_init()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb/
A Docb_encrypt.c30 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) { in ocb_encrypt()
A Docb_decrypt.c35 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 Docb3_init.c107 if (cipher_descriptor[cipher]->block_length != 16) { in ocb3_init()
118 ocb->block_len = cipher_descriptor[cipher]->block_length; in ocb3_init()
A Docb3_decrypt.c34 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb3_decrypt()
A Docb3_encrypt.c34 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 Dlrw_start.c51 if (cipher_descriptor[cipher]->block_length != 16) { in lrw_start()

Completed in 13 milliseconds

12