/optee_os/core/lib/libtomcrypt/src/mac/blake2/ |
A D | blake2bmac_file.c | 24 … *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen) in blake2bmac_file() argument 31 LTC_UNUSED_PARAM(maclen); in blake2bmac_file() 43 LTC_ARGCHK(maclen != NULL); in blake2bmac_file() 49 if ((err = blake2bmac_init(&st, *maclen, key, keylen)) != CRYPT_OK) { in blake2bmac_file() 72 err = blake2bmac_done(&st, mac, maclen); in blake2bmac_file()
|
A D | blake2smac_file.c | 24 … *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen) in blake2smac_file() argument 31 LTC_UNUSED_PARAM(maclen); in blake2smac_file() 43 LTC_ARGCHK(maclen != NULL); in blake2smac_file() 49 if ((err = blake2smac_init(&st, *maclen, key, keylen)) != CRYPT_OK) { in blake2smac_file() 72 err = blake2smac_done(&st, mac, maclen); in blake2smac_file()
|
A D | blake2bmac_memory.c | 25 …ng keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *maclen) in blake2bmac_memory() argument 33 LTC_ARGCHK(maclen != NULL); in blake2bmac_memory() 35 if ((err = blake2bmac_init(&st, *maclen, key, keylen)) != CRYPT_OK) { goto LBL_ERR; } in blake2bmac_memory() 37 err = blake2bmac_done(&st, mac, maclen); in blake2bmac_memory()
|
A D | blake2smac_memory.c | 25 …ng keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *maclen) in blake2smac_memory() argument 33 LTC_ARGCHK(maclen != NULL); in blake2smac_memory() 35 if ((err = blake2smac_init(&st, *maclen, key, keylen)) != CRYPT_OK) { goto LBL_ERR; } in blake2smac_memory() 37 err = blake2smac_done(&st, mac, maclen); in blake2smac_memory()
|
A D | blake2bmac.c | 52 int blake2bmac_done(blake2bmac_state *st, unsigned char *mac, unsigned long *maclen) in blake2bmac_done() argument 56 LTC_ARGCHK(maclen != NULL); in blake2bmac_done() 57 LTC_ARGCHK(*maclen >= st->blake2b.outlen); in blake2bmac_done() 59 *maclen = st->blake2b.outlen; in blake2bmac_done()
|
A D | blake2smac.c | 52 int blake2smac_done(blake2smac_state *st, unsigned char *mac, unsigned long *maclen) in blake2smac_done() argument 56 LTC_ARGCHK(maclen != NULL); in blake2smac_done() 57 LTC_ARGCHK(*maclen >= st->blake2s.outlen); in blake2smac_done() 59 *maclen = st->blake2s.outlen; in blake2smac_done()
|
A D | blake2bmac_memory_multi.c | 27 …gned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen, const unsigned ch… in blake2bmac_memory_multi() argument 38 LTC_ARGCHK(maclen != NULL); in blake2bmac_memory_multi() 43 if ((err = blake2bmac_init(&st, *maclen, key, keylen)) != CRYPT_OK) { goto LBL_ERR; } in blake2bmac_memory_multi() 50 err = blake2bmac_done(&st, mac, maclen); in blake2bmac_memory_multi()
|
A D | blake2smac_memory_multi.c | 27 …gned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen, const unsigned ch… in blake2smac_memory_multi() argument 38 LTC_ARGCHK(maclen != NULL); in blake2smac_memory_multi() 43 if ((err = blake2smac_init(&st, *maclen, key, keylen)) != CRYPT_OK) { goto LBL_ERR; } in blake2smac_memory_multi() 50 err = blake2smac_done(&st, mac, maclen); in blake2smac_memory_multi()
|
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/ |
A D | poly1305_file.c | 29 … *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen) in poly1305_file() argument 36 LTC_UNUSED_PARAM(maclen); in poly1305_file() 48 LTC_ARGCHK(maclen != NULL); in poly1305_file() 77 err = poly1305_done(&st, mac, maclen); in poly1305_file()
|
A D | poly1305_memory.c | 30 …ng keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *maclen) in poly1305_memory() argument 38 LTC_ARGCHK(maclen != NULL); in poly1305_memory() 42 err = poly1305_done(&st, mac, maclen); in poly1305_memory()
|
A D | poly1305_memory_multi.c | 32 …gned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen, const unsigned ch… in poly1305_memory_multi() argument 43 LTC_ARGCHK(maclen != NULL); in poly1305_memory_multi() 55 err = poly1305_done(&st, mac, maclen); in poly1305_memory_multi()
|
A D | poly1305.c | 172 int poly1305_done(poly1305_state *st, unsigned char *mac, unsigned long *maclen) in poly1305_done() argument 181 LTC_ARGCHK(maclen != NULL); in poly1305_done() 182 LTC_ARGCHK(*maclen >= 16); in poly1305_done() 261 *maclen = 16; in poly1305_done()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 121 int poly1305_done(poly1305_state *st, unsigned char *mac, unsigned long *maclen); 122 …g keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *maclen); 123 …gned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen, const unsigned ch… 124 …*fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen); 132 int blake2smac_done(blake2smac_state *st, unsigned char *mac, unsigned long *maclen); 133 …g keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *maclen); 134 …gned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen, const unsigned ch… 135 …*fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *maclen); 143 int blake2bmac_done(blake2bmac_state *st, unsigned char *mac, unsigned long *maclen); 144 …g keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *maclen); [all …]
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | ssl_msg.c | 307 size_t maclen ) = NULL; 710 if( post_avail < transform->maclen ) in mbedtls_ssl_encrypt_buf() 752 transform->maclen ); in mbedtls_ssl_encrypt_buf() 754 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf() 755 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf() 1002 if( post_avail < transform->maclen) in mbedtls_ssl_encrypt_buf() 1024 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf() 1025 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf() 1503 transform->maclen ) ); in mbedtls_ssl_decrypt_buf() 1527 rec->data_len -= transform->maclen; in mbedtls_ssl_decrypt_buf() [all …]
|
A D | ssl_tls.c | 1030 transform->maclen = 0; in ssl_populate_transform() 1078 transform->maclen = mac_key_len; in ssl_populate_transform() 1088 transform->maclen = MBEDTLS_SSL_TRUNCATED_HMAC_LEN; in ssl_populate_transform() 1094 mac_key_len = transform->maclen; in ssl_populate_transform() 1104 transform->minlen = transform->maclen; in ssl_populate_transform() 1116 transform->minlen = transform->maclen in ssl_populate_transform() 1122 transform->minlen = transform->maclen in ssl_populate_transform() 1124 - transform->maclen % cipher_info->block_size; in ssl_populate_transform() 1159 (unsigned) transform->maclen ) ); in ssl_populate_transform()
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | ssl.h | 1420 size_t maclen); 1989 size_t maclen, 2021 size_t maclen,
|
A D | ssl_internal.h | 736 size_t maclen; /*!< MAC(CBC) len */ member 793 return( transform->maclen == 0 && transform->taglen != 0 ); in mbedtls_ssl_transform_uses_aead()
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ssl.h | 1420 size_t maclen); 1989 size_t maclen, 2021 size_t maclen,
|
A D | ssl_internal.h | 736 size_t maclen; /*!< MAC(CBC) len */ member 793 return( transform->maclen == 0 && transform->taglen != 0 ); in mbedtls_ssl_transform_uses_aead()
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | ssl.h | 1420 size_t maclen); 1989 size_t maclen, 2021 size_t maclen,
|
A D | ssl_internal.h | 736 size_t maclen; /*!< MAC(CBC) len */ member 793 return( transform->maclen == 0 && transform->taglen != 0 ); in mbedtls_ssl_transform_uses_aead()
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | ssl.h | 1420 size_t maclen); 1989 size_t maclen, 2021 size_t maclen,
|
A D | ssl_internal.h | 736 size_t maclen; /*!< MAC(CBC) len */ member 793 return( transform->maclen == 0 && transform->taglen != 0 ); in mbedtls_ssl_transform_uses_aead()
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | ssl.h | 1420 size_t maclen); 1989 size_t maclen, 2021 size_t maclen,
|
A D | ssl_internal.h | 736 size_t maclen; /*!< MAC(CBC) len */ member 793 return( transform->maclen == 0 && transform->taglen != 0 ); in mbedtls_ssl_transform_uses_aead()
|