Home
last modified time | relevance | path

Searched refs:ivlen (Results 1 – 25 of 34) sorted by relevance

12

/optee_os/core/lib/libtomcrypt/src/encauth/chachapoly/
A Dchacha20poly1305_setiv.c22 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 Dchacha20poly1305_setiv_rfc7905.c23 …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 Dchacha20poly1305_memory.c32 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 Dchacha_memory.c28 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 Dchacha_ivctr32.c28 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 Dchacha_ivctr64.c28 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 Dchacha_crypt.c65 LTC_ARGCHK(st->ivlen != 0); in chacha_crypt()
77 if (st->ivlen == 8) { in chacha_crypt()
A Dchacha_setup.c60 st->ivlen = 0; /* will be set later by chacha_ivctr(32|64) */ in chacha_setup()
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_ivctr64.c29 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 Dsalsa20_memory.c28 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 Dsalsa20_crypt.c66 LTC_ARGCHK(st->ivlen == 8 || st->ivlen == 24); in salsa20_crypt()
A Dsalsa20_setup.c62 st->ivlen = 0; /* will be set later by salsa20_ivctr(32|64) */ in salsa20_setup()
A Dxsalsa20_setup.c123 st->ivlen = 24; /* set switch to say nonce/IV has been loaded */ in xsalsa20_setup()
/optee_os/core/lib/libtomcrypt/src/stream/sosemanuk/
A Dsosemanuk_memory.c27 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 Dsosemanuk.c338 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 Drabbit_memory.c32 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 Drabbit.c229 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 Dsober128_stream_memory.c27 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 Dsober128_stream.c207 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 Dtomcrypt_cipher.h1002 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 Dtomcrypt_mac.h546 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 Dssl_msg.c305 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 Dpkcs12.c87 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 Dssl.h1418 size_t ivlen,
1991 size_t ivlen );
2023 size_t ivlen,
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dssl.h1418 size_t ivlen,
1991 size_t ivlen );
2023 size_t ivlen,

Completed in 49 milliseconds

12