/optee_os/core/lib/libtomcrypt/src/encauth/chachapoly/ |
A D | chacha20poly1305_setiv.c | 22 int chacha20poly1305_setiv(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen) in chacha20poly1305_setiv() argument 30 LTC_ARGCHK(ivlen == 12 || ivlen == 8); in chacha20poly1305_setiv() 33 if (ivlen == 12) { in chacha20poly1305_setiv() 35 if ((err = chacha_ivctr32(&st->chacha, iv, ivlen, 1)) != CRYPT_OK) return err; in chacha20poly1305_setiv() 39 if ((err = chacha_ivctr64(&st->chacha, iv, ivlen, 1)) != CRYPT_OK) return err; in chacha20poly1305_setiv() 46 if (ivlen == 12) { in chacha20poly1305_setiv() 48 if ((err = chacha_ivctr32(&tmp_st, iv, ivlen, 0)) != CRYPT_OK) return err; in chacha20poly1305_setiv() 52 if ((err = chacha_ivctr64(&tmp_st, iv, ivlen, 0)) != CRYPT_OK) return err; in chacha20poly1305_setiv()
|
A D | chacha20poly1305_setiv_rfc7905.c | 23 …fc7905(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 sequence_… in chacha20poly1305_setiv_rfc7905() argument 30 LTC_ARGCHK(ivlen == 12); in chacha20poly1305_setiv_rfc7905()
|
A D | chacha20poly1305_memory.c | 32 const unsigned char *iv, unsigned long ivlen, in chacha20poly1305_memory() argument 50 if ((err = chacha20poly1305_setiv(&st, iv, ivlen)) != CRYPT_OK) { goto LBL_ERR; } in chacha20poly1305_memory()
|
/optee_os/core/lib/libtomcrypt/src/stream/chacha/ |
A D | chacha_memory.c | 28 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in chacha_memory() argument 34 LTC_ARGCHK(ivlen <= 8 || counter < 4294967296); /* 2**32 */ in chacha_memory() 37 if (ivlen > 8) { in chacha_memory() 38 if ((err = chacha_ivctr32(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory() 40 if ((err = chacha_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory()
|
A D | chacha_ivctr32.c | 28 int chacha_ivctr32(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong32 counter) in chacha_ivctr32() argument 33 LTC_ARGCHK(ivlen == 12); in chacha_ivctr32() 40 st->ivlen = ivlen; in chacha_ivctr32()
|
A D | chacha_ivctr64.c | 28 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in chacha_ivctr64() argument 33 LTC_ARGCHK(ivlen == 8); in chacha_ivctr64() 40 st->ivlen = ivlen; in chacha_ivctr64()
|
A D | chacha_crypt.c | 65 LTC_ARGCHK(st->ivlen != 0); in chacha_crypt() 77 if (st->ivlen == 8) { in chacha_crypt()
|
A D | chacha_setup.c | 60 st->ivlen = 0; /* will be set later by chacha_ivctr(32|64) */ in chacha_setup()
|
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/ |
A D | salsa20_ivctr64.c | 29 int salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counte… in salsa20_ivctr64() argument 34 LTC_ARGCHK(ivlen == 8); in salsa20_ivctr64() 41 st->ivlen = ivlen; in salsa20_ivctr64()
|
A D | salsa20_memory.c | 28 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in salsa20_memory() argument 35 if ((err = salsa20_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in salsa20_memory()
|
A D | salsa20_crypt.c | 66 LTC_ARGCHK(st->ivlen == 8 || st->ivlen == 24); in salsa20_crypt()
|
A D | salsa20_setup.c | 62 st->ivlen = 0; /* will be set later by salsa20_ivctr(32|64) */ in salsa20_setup()
|
A D | xsalsa20_setup.c | 123 st->ivlen = 24; /* set switch to say nonce/IV has been loaded */ in xsalsa20_setup()
|
/optee_os/core/lib/libtomcrypt/src/stream/sosemanuk/ |
A D | sosemanuk_memory.c | 27 const unsigned char *iv, unsigned long ivlen, in sosemanuk_memory() argument 35 if ((err = sosemanuk_setiv(&st, iv, ivlen)) != CRYPT_OK) goto WIPE_KEY; in sosemanuk_memory()
|
A D | sosemanuk.c | 338 int sosemanuk_setiv(sosemanuk_state *st, const unsigned char *iv, unsigned long ivlen) in sosemanuk_setiv() argument 379 LTC_ARGCHK(ivlen <= 16); in sosemanuk_setiv() 380 LTC_ARGCHK(iv != NULL || ivlen == 0); in sosemanuk_setiv() 382 if (ivlen > 0) XMEMCPY(ivtmp, iv, ivlen); in sosemanuk_setiv()
|
/optee_os/core/lib/libtomcrypt/src/stream/rabbit/ |
A D | rabbit_memory.c | 32 const unsigned char *iv, unsigned long ivlen, in rabbit_memory() argument 40 if ((err = rabbit_setiv(&st, iv, ivlen)) != CRYPT_OK) goto WIPE_KEY; in rabbit_memory()
|
A D | rabbit.c | 229 int rabbit_setiv(rabbit_state* st, const unsigned char *iv, unsigned long ivlen) in rabbit_setiv() argument 235 LTC_ARGCHK(iv != NULL || ivlen == 0); in rabbit_setiv() 236 LTC_ARGCHK(ivlen <= 8); in rabbit_setiv() 239 if (iv && ivlen > 0) XMEMCPY(tmpiv, iv, ivlen); in rabbit_setiv()
|
/optee_os/core/lib/libtomcrypt/src/stream/sober128/ |
A D | sober128_stream_memory.c | 27 const unsigned char *iv, unsigned long ivlen, in sober128_stream_memory() argument 35 if ((err = sober128_stream_setiv(&st, iv, ivlen)) != CRYPT_OK) goto WIPE_KEY; in sober128_stream_memory()
|
A D | sober128_stream.c | 207 int sober128_stream_setiv(sober128_state *st, const unsigned char *iv, unsigned long ivlen) in sober128_stream_setiv() argument 213 LTC_ARGCHK(ivlen > 0); in sober128_stream_setiv() 219 if ((ivlen & 3) != 0) { in sober128_stream_setiv() 223 for (i = 0; i < ivlen; i += 4) { in sober128_stream_setiv() 231 ADDKEY(ivlen); in sober128_stream_setiv()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_cipher.h | 1002 unsigned long ivlen; member 1007 int chacha_ivctr32(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong32 counter); 1014 const unsigned char *iv, unsigned long ivlen, ulong64 counter, 1025 unsigned long ivlen; member 1036 const unsigned char *iv, unsigned long ivlen, ulong64 counter, 1069 int sosemanuk_setiv(sosemanuk_state *st, const unsigned char *iv, unsigned long ivlen); 1075 const unsigned char *iv, unsigned long ivlen, 1097 int rabbit_setiv(rabbit_state* st, const unsigned char *iv, unsigned long ivlen); 1103 const unsigned char *iv, unsigned long ivlen, 1138 int sober128_stream_setiv(sober128_state *st, const unsigned char *iv, unsigned long ivlen); [all …]
|
A D | tomcrypt_mac.h | 546 int chacha20poly1305_setiv(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen… 547 …fc7905(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 sequence_… 553 const unsigned char *iv, unsigned long ivlen,
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | ssl_msg.c | 305 size_t ivlen, 855 iv, transform->ivlen, in mbedtls_ssl_encrypt_buf() 900 padlen = transform->ivlen - ( rec->data_len + 1 ) % transform->ivlen; in mbedtls_ssl_encrypt_buf() 901 if( padlen == transform->ivlen ) in mbedtls_ssl_encrypt_buf() 944 transform->ivlen ); in mbedtls_ssl_encrypt_buf() 978 transform->ivlen ); in mbedtls_ssl_encrypt_buf() 1434 iv, transform->ivlen, in mbedtls_ssl_decrypt_buf() 1470 minlen += transform->ivlen; in mbedtls_ssl_decrypt_buf() 1581 data += transform->ivlen; in mbedtls_ssl_decrypt_buf() 1614 transform->ivlen ); in mbedtls_ssl_decrypt_buf() [all …]
|
A D | pkcs12.c | 87 unsigned char *iv, size_t ivlen ) in pkcs12_pbe_derive_key_iv() argument 114 if( iv == NULL || ivlen == 0 ) in pkcs12_pbe_derive_key_iv() 117 if( ( ret = mbedtls_pkcs12_derivation( iv, ivlen, unipwd, pwdlen * 2 + 2, in pkcs12_pbe_derive_key_iv()
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | ssl.h | 1418 size_t ivlen, 1991 size_t ivlen ); 2023 size_t ivlen,
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ssl.h | 1418 size_t ivlen, 1991 size_t ivlen ); 2023 size_t ivlen,
|