Home
last modified time | relevance | path

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

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/
A Dchacha20poly1305_setiv.c15 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 Dchacha20poly1305_setiv_rfc7905.c16 …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 Dchacha20poly1305_memory.c25 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 Dchacha_memory.c21 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 Dchacha_ivctr32.c21 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 Dchacha_ivctr64.c21 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 Dchacha_crypt.c58 LTC_ARGCHK(st->ivlen != 0); in chacha_crypt()
70 if (st->ivlen == 8) { in chacha_crypt()
A Dchacha_setup.c53 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 Dsalsa20_ivctr64.c22 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 Dsalsa20_memory.c21 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 Dsalsa20_crypt.c59 LTC_ARGCHK(st->ivlen == 8 || st->ivlen == 24); in salsa20_crypt()
A Dsalsa20_setup.c55 st->ivlen = 0; /* will be set later by salsa20_ivctr(32|64) */ in salsa20_setup()
A Dxsalsa20_setup.c116 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 Drabbit_memory.c25 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 Drabbit.c222 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 Dsober128_stream_memory.c20 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 Dsober128_stream.c200 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 Dsosemanuk_memory.c20 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 Dsosemanuk.c331 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 Dtomcrypt_cipher.h1014 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 Dtomcrypt_mac.h552 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 Dssl_msg.c314 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 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-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dssl.h1489 size_t ivlen,
2062 size_t ivlen );
2094 size_t ivlen,
A Dssl_internal.h753 size_t ivlen; /*!< IV length */ member

Completed in 48 milliseconds

12