/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/ |
A D | chacha20poly1305_setiv.c | 15 int chacha20poly1305_setiv(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen) in chacha20poly1305_setiv() argument 23 LTC_ARGCHK(ivlen == 12 || ivlen == 8); in chacha20poly1305_setiv() 26 if (ivlen == 12) { in chacha20poly1305_setiv() 28 if ((err = chacha_ivctr32(&st->chacha, iv, ivlen, 1)) != CRYPT_OK) return err; in chacha20poly1305_setiv() 32 if ((err = chacha_ivctr64(&st->chacha, iv, ivlen, 1)) != CRYPT_OK) return err; in chacha20poly1305_setiv() 39 if (ivlen == 12) { in chacha20poly1305_setiv() 41 if ((err = chacha_ivctr32(&tmp_st, iv, ivlen, 0)) != CRYPT_OK) return err; in chacha20poly1305_setiv() 45 if ((err = chacha_ivctr64(&tmp_st, iv, ivlen, 0)) != CRYPT_OK) return err; in chacha20poly1305_setiv()
|
A D | chacha20poly1305_setiv_rfc7905.c | 16 …fc7905(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 sequence_… in chacha20poly1305_setiv_rfc7905() argument 23 LTC_ARGCHK(ivlen == 12); in chacha20poly1305_setiv_rfc7905()
|
A D | chacha20poly1305_memory.c | 25 const unsigned char *iv, unsigned long ivlen, in chacha20poly1305_memory() argument 43 if ((err = chacha20poly1305_setiv(&st, iv, ivlen)) != CRYPT_OK) { goto LBL_ERR; } in chacha20poly1305_memory()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/chacha/ |
A D | chacha_memory.c | 21 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in chacha_memory() argument 27 LTC_ARGCHK(ivlen <= 8 || counter < 4294967296); /* 2**32 */ in chacha_memory() 30 if (ivlen > 8) { in chacha_memory() 31 if ((err = chacha_ivctr32(&st, iv, ivlen, (ulong32)counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory() 33 if ((err = chacha_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory()
|
A D | chacha_ivctr32.c | 21 int chacha_ivctr32(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong32 counter) in chacha_ivctr32() argument 26 LTC_ARGCHK(ivlen == 12); in chacha_ivctr32() 33 st->ivlen = ivlen; in chacha_ivctr32()
|
A D | chacha_ivctr64.c | 21 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in chacha_ivctr64() argument 26 LTC_ARGCHK(ivlen == 8); in chacha_ivctr64() 33 st->ivlen = ivlen; in chacha_ivctr64()
|
A D | chacha_crypt.c | 58 LTC_ARGCHK(st->ivlen != 0); in chacha_crypt() 70 if (st->ivlen == 8) { in chacha_crypt()
|
A D | chacha_setup.c | 53 st->ivlen = 0; /* will be set later by chacha_ivctr(32|64) */ in chacha_setup()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/ |
A D | salsa20_ivctr64.c | 22 int salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counte… in salsa20_ivctr64() argument 27 LTC_ARGCHK(ivlen == 8); in salsa20_ivctr64() 34 st->ivlen = ivlen; in salsa20_ivctr64()
|
A D | salsa20_memory.c | 21 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in salsa20_memory() argument 28 if ((err = salsa20_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in salsa20_memory()
|
A D | salsa20_crypt.c | 59 LTC_ARGCHK(st->ivlen == 8 || st->ivlen == 24); in salsa20_crypt()
|
A D | salsa20_setup.c | 55 st->ivlen = 0; /* will be set later by salsa20_ivctr(32|64) */ in salsa20_setup()
|
A D | xsalsa20_setup.c | 116 st->ivlen = 24; /* set switch to say nonce/IV has been loaded */ in xsalsa20_setup()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/rabbit/ |
A D | rabbit_memory.c | 25 const unsigned char *iv, unsigned long ivlen, in rabbit_memory() argument 33 if ((err = rabbit_setiv(&st, iv, ivlen)) != CRYPT_OK) goto WIPE_KEY; in rabbit_memory()
|
A D | rabbit.c | 222 int rabbit_setiv(rabbit_state* st, const unsigned char *iv, unsigned long ivlen) in rabbit_setiv() argument 228 LTC_ARGCHK(iv != NULL || ivlen == 0); in rabbit_setiv() 229 LTC_ARGCHK(ivlen <= 8); in rabbit_setiv() 232 if (iv && ivlen > 0) XMEMCPY(tmpiv, iv, ivlen); in rabbit_setiv()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sober128/ |
A D | sober128_stream_memory.c | 20 const unsigned char *iv, unsigned long ivlen, in sober128_stream_memory() argument 28 if ((err = sober128_stream_setiv(&st, iv, ivlen)) != CRYPT_OK) goto WIPE_KEY; in sober128_stream_memory()
|
A D | sober128_stream.c | 200 int sober128_stream_setiv(sober128_state *st, const unsigned char *iv, unsigned long ivlen) in sober128_stream_setiv() argument 206 LTC_ARGCHK(ivlen > 0); in sober128_stream_setiv() 212 if ((ivlen & 3) != 0) { in sober128_stream_setiv() 216 for (i = 0; i < ivlen; i += 4) { in sober128_stream_setiv() 224 ADDKEY(ivlen); in sober128_stream_setiv()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sosemanuk/ |
A D | sosemanuk_memory.c | 20 const unsigned char *iv, unsigned long ivlen, in sosemanuk_memory() argument 28 if ((err = sosemanuk_setiv(&st, iv, ivlen)) != CRYPT_OK) goto WIPE_KEY; in sosemanuk_memory()
|
A D | sosemanuk.c | 331 int sosemanuk_setiv(sosemanuk_state *st, const unsigned char *iv, unsigned long ivlen) in sosemanuk_setiv() argument 372 LTC_ARGCHK(ivlen <= 16); in sosemanuk_setiv() 373 LTC_ARGCHK(iv != NULL || ivlen == 0); in sosemanuk_setiv() 375 if (ivlen > 0) XMEMCPY(ivtmp, iv, ivlen); in sosemanuk_setiv()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_cipher.h | 1014 unsigned long ivlen; member 1019 int chacha_ivctr32(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong32 counter); 1026 const unsigned char *iv, unsigned long ivlen, ulong64 counter, 1037 unsigned long ivlen; member 1048 const unsigned char *iv, unsigned long ivlen, ulong64 counter, 1081 int sosemanuk_setiv(sosemanuk_state *st, const unsigned char *iv, unsigned long ivlen); 1087 const unsigned char *iv, unsigned long ivlen, 1109 int rabbit_setiv(rabbit_state* st, const unsigned char *iv, unsigned long ivlen); 1115 const unsigned char *iv, unsigned long ivlen, 1150 int sober128_stream_setiv(sober128_state *st, const unsigned char *iv, unsigned long ivlen); [all …]
|
A D | tomcrypt_mac.h | 552 int chacha20poly1305_setiv(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen… 553 …fc7905(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 sequence_… 559 const unsigned char *iv, unsigned long ivlen,
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | ssl_msg.c | 314 size_t ivlen, 915 iv, transform->ivlen, in mbedtls_ssl_encrypt_buf() 960 padlen = transform->ivlen - ( rec->data_len + 1 ) % transform->ivlen; in mbedtls_ssl_encrypt_buf() 961 if( padlen == transform->ivlen ) in mbedtls_ssl_encrypt_buf() 1004 transform->ivlen ); in mbedtls_ssl_encrypt_buf() 1038 transform->ivlen ); in mbedtls_ssl_encrypt_buf() 1274 iv, transform->ivlen, in mbedtls_ssl_decrypt_buf() 1310 minlen += transform->ivlen; in mbedtls_ssl_decrypt_buf() 1439 data += transform->ivlen; in mbedtls_ssl_decrypt_buf() 1472 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-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ssl.h | 1489 size_t ivlen, 2062 size_t ivlen ); 2094 size_t ivlen,
|
A D | ssl_internal.h | 753 size_t ivlen; /*!< IV length */ member
|