Searched refs:last_block_len (Results 1 – 4 of 4) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_decrypt_last.c | 24 int err, x, full_blocks, full_blocks_len, last_block_len; in ocb3_decrypt_last() local 39 last_block_len = ctlen - full_blocks_len; in ocb3_decrypt_last() 48 if (last_block_len>0) { in ocb3_decrypt_last() 58 …ocb3_int_xor_blocks(pt+full_blocks_len, (unsigned char *)ct+full_blocks_len, iPad, last_block_len); in ocb3_decrypt_last() 61 ocb3_int_xor_blocks(ocb->checksum, ocb->checksum, pt+full_blocks_len, last_block_len); in ocb3_decrypt_last() 62 for(x=last_block_len; x<ocb->block_len; x++) { in ocb3_decrypt_last() 63 if (x == last_block_len) { in ocb3_decrypt_last()
|
A D | ocb3_encrypt_last.c | 24 int err, x, full_blocks, full_blocks_len, last_block_len; in ocb3_encrypt_last() local 39 last_block_len = ptlen - full_blocks_len; in ocb3_encrypt_last() 50 if (last_block_len>0) { in ocb3_encrypt_last() 60 ocb3_int_xor_blocks(ct+full_blocks_len, pt+full_blocks_len, iPad, last_block_len); in ocb3_encrypt_last() 63 ocb3_int_xor_blocks(ocb->checksum, ocb->checksum, pt+full_blocks_len, last_block_len); in ocb3_encrypt_last() 64 for(x=last_block_len; x<ocb->block_len; x++) { in ocb3_encrypt_last() 65 if (x == last_block_len) { in ocb3_encrypt_last()
|
A D | ocb3_add_aad.c | 47 int err, x, full_blocks, full_blocks_len, last_block_len; in ocb3_add_aad() local 80 last_block_len = datalen - full_blocks_len; in ocb3_add_aad() 88 if (last_block_len>0) { in ocb3_add_aad() 89 XMEMCPY(ocb->adata_buffer, data+full_blocks_len, last_block_len); in ocb3_add_aad() 90 ocb->adata_buffer_bytes = last_block_len; in ocb3_add_aad()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | cmac.c | 170 size_t last_block_len ) in cmac_pad() argument 176 if( j < last_block_len ) in cmac_pad() 178 else if( j == last_block_len ) in cmac_pad()
|
Completed in 7 milliseconds