Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 25 of 80) sorted by relevance

1234

/optee_os/core/drivers/crypto/se050/glue/
A Duser.c13 sss_status_t glue_mac_context_init(void **mac, const uint8_t *key, size_t len) in glue_mac_context_init() argument
15 if (crypto_mac_alloc_ctx(mac, TEE_ALG_AES_CMAC)) in glue_mac_context_init()
18 if (crypto_mac_init(*mac, key, len)) in glue_mac_context_init()
24 void glue_mac_context_free(void *mac) in glue_mac_context_free() argument
26 crypto_mac_free_ctx(mac); in glue_mac_context_free()
29 sss_status_t glue_mac_update(void *mac, const uint8_t *msg, size_t len) in glue_mac_update() argument
31 if (crypto_mac_update(mac, msg, len)) in glue_mac_update()
37 sss_status_t glue_mac_final(void *mac, uint8_t *buf, size_t len) in glue_mac_final() argument
39 if (crypto_mac_final(mac, buf, len)) in glue_mac_final()
48 if (crypto_mac_update(mac, msg, msg_len)) in glue_mac_one_go()
[all …]
/optee_os/core/drivers/crypto/caam/hash/
A Dcaam_hash_mac.c128 struct crypto_mac *mac = to_mac_ctx(ctx); in do_hmac_init() local
129 struct hashctx *hmac_ctx = mac->ctx; in do_hmac_init()
250 caam_hash_hmac_free(mac->ctx); in do_hmac_free()
252 free(mac); in do_hmac_free()
290 struct crypto_mac *mac = NULL; in caam_hmac_allocate() local
303 mac = calloc(1, sizeof(*mac)); in caam_hmac_allocate()
304 if (!mac) in caam_hmac_allocate()
314 mac->mac_ctx.ops = &hmac_ops; in caam_hmac_allocate()
315 mac->ctx = hmac_ctx; in caam_hmac_allocate()
317 *ctx = &mac->mac_ctx; in caam_hmac_allocate()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
A Dpoly1305.c260 mac[ 0] = (unsigned char)( acc0 ); in poly1305_compute_mac()
261 mac[ 1] = (unsigned char)( acc0 >> 8 ); in poly1305_compute_mac()
262 mac[ 2] = (unsigned char)( acc0 >> 16 ); in poly1305_compute_mac()
263 mac[ 3] = (unsigned char)( acc0 >> 24 ); in poly1305_compute_mac()
264 mac[ 4] = (unsigned char)( acc1 ); in poly1305_compute_mac()
265 mac[ 5] = (unsigned char)( acc1 >> 8 ); in poly1305_compute_mac()
392 POLY1305_VALIDATE_RET( mac != NULL ); in mbedtls_poly1305_finish()
410 poly1305_compute_mac( ctx, mac ); in mbedtls_poly1305_finish()
423 POLY1305_VALIDATE_RET( mac != NULL ); in mbedtls_poly1305_mac()
528 unsigned char mac[16]; in mbedtls_poly1305_self_test() local
[all …]
/optee_os/core/include/crypto/
A Dcrypto_impl.h107 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(hmac_md5, mac)
108 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(hmac_sha1, mac)
109 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(hmac_sha224, mac)
110 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(hmac_sha256, mac)
111 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(hmac_sha384, mac)
112 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(hmac_sha512, mac)
118 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(hmac_sm3, mac)
129 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(aes_cbc_mac_nopad, mac)
130 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(aes_cbc_mac_pkcs5, mac)
141 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(aes_cmac, mac)
[all …]
/optee_os/core/drivers/crypto/se050/adaptors/utils/
A Dscp_config.c54 .mac = { 0x52, 0xb2, 0x53, 0xca, 0xdf, 0x47, 0x2b, 0xdb,
62 .mac = { 0x12, 0x03, 0xff, 0x61, 0xdf, 0xbc, 0x9c, 0x86,
70 .mac = { 0x08, 0x15, 0x55, 0x96, 0x43, 0xfb, 0x79, 0xeb,
78 .mac = { 0x10, 0x5c, 0xea, 0x22, 0x19, 0xf5, 0x2b, 0xd1,
86 .mac = { 0xdb, 0x0a, 0xa3, 0x19, 0xa4, 0x08, 0x69, 0x6c,
94 .mac = { 0x9a, 0x76, 0x1b, 0x8d, 0xba, 0x6b, 0xed, 0xf2,
102 .mac = { 0xaf, 0x17, 0x7d, 0x5d, 0xbd, 0xf7, 0xc0, 0xd5,
110 .mac = { 0x64, 0x6b, 0xc2, 0xb8, 0xc3, 0xa4, 0xd9, 0xc1,
258 [1] = keys->mac, in se050_scp03_prepare_rotate_cmd()
314 .mac = { CFG_CORE_SE05X_SCP03_CURRENT_MAC }, in get_config_key()
[all …]
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305_file.c29 …har *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *mac… in poly1305_file() argument
35 LTC_UNUSED_PARAM(mac); in poly1305_file()
47 LTC_ARGCHK(mac != NULL); in poly1305_file()
77 err = poly1305_done(&st, mac, maclen); in poly1305_file()
A Dpoly1305_memory.c30 … long keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *mac… in poly1305_memory() argument
37 LTC_ARGCHK(mac != NULL); in poly1305_memory()
42 err = poly1305_done(&st, mac, maclen); in poly1305_memory()
/optee_os/core/lib/libtomcrypt/src/mac/blake2/
A Dblake2bmac_file.c24 …har *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *mac… in blake2bmac_file() argument
30 LTC_UNUSED_PARAM(mac); in blake2bmac_file()
42 LTC_ARGCHK(mac != NULL); in blake2bmac_file()
72 err = blake2bmac_done(&st, mac, maclen); in blake2bmac_file()
A Dblake2smac_file.c24 …har *fname, const unsigned char *key, unsigned long keylen, unsigned char *mac, unsigned long *mac… in blake2smac_file() argument
30 LTC_UNUSED_PARAM(mac); in blake2smac_file()
42 LTC_ARGCHK(mac != NULL); in blake2smac_file()
72 err = blake2smac_done(&st, mac, maclen); in blake2smac_file()
A Dblake2bmac_memory.c25 … long keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *mac… in blake2bmac_memory() argument
32 LTC_ARGCHK(mac != NULL); in blake2bmac_memory()
37 err = blake2bmac_done(&st, mac, maclen); in blake2bmac_memory()
A Dblake2smac_memory.c25 … long keylen, const unsigned char *in, unsigned long inlen, unsigned char *mac, unsigned long *mac… in blake2smac_memory() argument
32 LTC_ARGCHK(mac != NULL); in blake2smac_memory()
37 err = blake2smac_done(&st, mac, maclen); in blake2smac_memory()
A Dblake2bmac.c52 int blake2bmac_done(blake2bmac_state *st, unsigned char *mac, unsigned long *maclen) in blake2bmac_done() argument
55 LTC_ARGCHK(mac != NULL); in blake2bmac_done()
60 return blake2b_done(st, mac); in blake2bmac_done()
A Dblake2smac.c52 int blake2smac_done(blake2smac_state *st, unsigned char *mac, unsigned long *maclen) in blake2smac_done() argument
55 LTC_ARGCHK(mac != NULL); in blake2smac_done()
60 return blake2s_done(st, mac); in blake2smac_done()
/optee_os/out/arm/core/lib/libtomcrypt/src/mac/hmac/
A D.hmac_done.o.cmd1mac/hmac/hmac_done.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/a…
A D.hmac_init.o.cmd1mac/hmac/hmac_init.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/a…
A D.hmac_memory.o.cmd1mac/hmac/hmac_memory.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains…
A D.hmac_memory_multi.o.cmd1mac/hmac/hmac_memory_multi.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../tool…
A D.hmac_process.o.cmd1mac/hmac/hmac_process.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchain…
/optee_os/out/arm/core/lib/libtomcrypt/src/mac/omac/
A D.omac_done.o.cmd1mac/omac/omac_done.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/a…
A D.omac_init.o.cmd1mac/omac/omac_init.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/a…
A D.omac_memory.o.cmd1mac/omac/omac_memory.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains…
A D.omac_memory_multi.o.cmd1mac/omac/omac_memory_multi.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../tool…
A D.omac_process.o.cmd1mac/omac/omac_process.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchain…
/optee_os/core/drivers/crypto/caam/cipher/
A Dcaam_cipher_mac.c576 struct cipherdata *macdata = mac->ctx; in do_cmac_init()
624 struct cipherdata *macdata = mac->ctx; in do_cmac_update()
704 caam_cipher_free(mac->ctx); in do_cmac_free()
705 free(mac); in do_cmac_free()
748 struct crypto_mac *mac = NULL; in caam_cmac_allocate() local
760 mac = calloc(1, sizeof(*mac)); in caam_cmac_allocate()
761 if (!mac) in caam_cmac_allocate()
788 mac->mac_ctx.ops = &cmac_ops; in caam_cmac_allocate()
789 mac->ctx = macdata; in caam_cmac_allocate()
791 *ctx = &mac->mac_ctx; in caam_cmac_allocate()
[all …]
/optee_os/out/arm/core/crypto/
A D.cbc-mac.o.cmd1mac.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aarc…

Completed in 39 milliseconds

1234