Home
last modified time | relevance | path

Searched refs:leftover (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
H A Dpoly1305.c109 st->leftover = 0; in poly1305_init()
130 if (st->leftover) { in poly1305_process()
131 unsigned long want = (16 - st->leftover); in poly1305_process()
133 for (i = 0; i < want; i++) st->buffer[st->leftover + i] = in[i]; in poly1305_process()
136 st->leftover += want; in poly1305_process()
137 if (st->leftover < 16) return CRYPT_OK; in poly1305_process()
139 st->leftover = 0; in poly1305_process()
152 for (i = 0; i < inlen; i++) st->buffer[st->leftover + i] = in[i]; in poly1305_process()
153 st->leftover += inlen; in poly1305_process()
178 if (st->leftover) { in poly1305_done()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Daes.c1198 size_t leftover = length % 16; in mbedtls_aes_crypt_xts() local
1225 if (MBEDTLS_UNLIKELY(leftover && (mode == MBEDTLS_AES_DECRYPT) && blocks == 0)) { in mbedtls_aes_crypt_xts()
1251 if (leftover) { in mbedtls_aes_crypt_xts()
1263 for (i = 0; i < leftover; i++) { in mbedtls_aes_crypt_xts()
1268 mbedtls_xor(tmp, input, t, leftover); in mbedtls_aes_crypt_xts()
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_mac.h109 unsigned long leftover; member