Home
last modified time | relevance | path

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

12

/optee_os/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_init.c41 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 Dxcbc_process.c40 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher]->block_length) || (xcbc->blocksize < 0) || in xcbc_process()
A Dxcbc_done.c36 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher]->block_length) || (xcbc->blocksize < 0) || in xcbc_done()
/optee_os/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_pad.c24 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 Decb_decrypt.c36 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 Decb_encrypt.c36 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 Decb_start.c39 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
/optee_os/core/lib/libtomcrypt/src/mac/f9/
A Df9_init.c39 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 Df9_done.c36 if ((f9->blocksize > cipher_descriptor[f9->cipher]->block_length) || (f9->blocksize < 0) || in f9_done()
A Df9_process.c37 if ((f9->blocksize > cipher_descriptor[f9->cipher]->block_length) || (f9->blocksize < 0) || in f9_process()
/optee_os/core/lib/libtomcrypt/src/modes/ctr/
A Dctr_start.c49 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 Dchc.c50 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 Domac_init.c41 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 Df8_start.c50 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 Dcrypt_find_cipher_any.c38 …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 Docb3_init.c114 if (cipher_descriptor[cipher]->block_length != 16) { in ocb3_init()
125 ocb->block_len = cipher_descriptor[cipher]->block_length; in ocb3_init()
A Docb3_decrypt.c41 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb3_decrypt()
A Docb3_encrypt.c41 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb3_encrypt()
/optee_os/core/lib/libtomcrypt/src/modes/cbc/
A Dcbc_start.c49 cbc->blocklen = cipher_descriptor[cipher]->block_length; in cbc_start()
/optee_os/core/lib/libtomcrypt/src/modes/ofb/
A Dofb_start.c45 ofb->blocklen = cipher_descriptor[cipher]->block_length; in ofb_start()
/optee_os/core/lib/libtomcrypt/src/modes/xts/
A Dxts_init.c42 if (cipher_descriptor[cipher]->block_length != 16) { in xts_start()
/optee_os/core/lib/libtomcrypt/src/modes/cfb/
A Dcfb_start.c46 cfb->blocklen = cipher_descriptor[cipher]->block_length; in cfb_start()
/optee_os/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_init.c40 if (cipher_descriptor[cipher]->block_length != 16) { in ccm_init()
/optee_os/core/lib/libtomcrypt/src/encauth/ocb/
A Docb_encrypt.c37 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) { in ocb_encrypt()
A Docb_decrypt.c42 if (ocb->block_len != cipher_descriptor[ocb->cipher]->block_length) { in ocb_decrypt()

Completed in 37 milliseconds

12