/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_macros.h | 65 XMEMCPY ((y), &__t, 4); } while(0) 68 do { XMEMCPY (&(x), (y), 4); \ 104 XMEMCPY ((y), &__t, 8); } while(0) 107 do { XMEMCPY (&(x), (y), 8); \ 148 do { XMEMCPY(&(x), y, 4); } while(0) 165 do { ulong32 __t = (x); XMEMCPY(y, &__t, 4); } while(0) 168 do { XMEMCPY(&(x), y, 4); x &= 0xFFFFFFFF; } while(0) 174 do { XMEMCPY(&(x), y, 8); } while(0) 208 do { XMEMCPY(&(x), y, 4); } while(0) 228 do { XMEMCPY(&(x), y, 4); x &= 0xFFFFFFFF; } while(0) [all …]
|
/optee_os/core/lib/libtomcrypt/src/modes/xts/ |
A D | xts_test.c | 33 XMEMCPY(&xts.key1, skey1, sizeof(symmetric_key)); in _xts_test_accel_xts_encrypt() 34 XMEMCPY(&xts.key2, skey2, sizeof(symmetric_key)); in _xts_test_accel_xts_encrypt() 60 XMEMCPY(&xts.key1, skey1, sizeof(symmetric_key)); in _xts_test_accel_xts_decrypt() 61 XMEMCPY(&xts.key2, skey2, sizeof(symmetric_key)); in _xts_test_accel_xts_decrypt() 246 XMEMCPY(T, Torg, sizeof(T)); in xts_test() 271 XMEMCPY(T, Torg, sizeof(T)); in xts_test()
|
A D | xts_decrypt.c | 104 XMEMCPY(T, tweak, sizeof(T)); in xts_decrypt() 122 XMEMCPY(CC, T, 16); in xts_decrypt()
|
/optee_os/core/lib/libtomcrypt/src/modes/lrw/ |
A D | lrw_setiv.c | 45 XMEMCPY(lrw->IV, IV, 16); in lrw_setiv() 54 XMEMCPY(T, &lrw->PC[0][IV[0]][0], 16); in lrw_setiv() 66 XMEMCPY(lrw->pad, T, 16); in lrw_setiv()
|
A D | lrw_getiv.c | 36 XMEMCPY(IV, lrw->IV, 16); in lrw_getiv()
|
/optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_export_point.c | 35 XMEMCPY(out+1, buf, size); in ltc_ecc_export_point() 49 XMEMCPY(out+1, buf, size); in ltc_ecc_export_point() 53 XMEMCPY(out+1+size, buf, size); in ltc_ecc_export_point()
|
/optee_os/core/lib/libtomcrypt/src/mac/xcbc/ |
A D | xcbc_init.c | 57 XMEMCPY(xcbc->K[0], key, k1); in xcbc_init() 58 XMEMCPY(xcbc->K[1], key+k1, cipher_descriptor[cipher]->block_length); in xcbc_init() 59 …XMEMCPY(xcbc->K[2], key+k1 + cipher_descriptor[cipher]->block_length, cipher_descriptor[cipher]->b… in xcbc_init()
|
/optee_os/core/lib/libtomcrypt/src/encauth/gcm/ |
A D | gcm_add_aad.c | 71 XMEMCPY(gcm->Y, gcm->X, 16); in gcm_add_aad() 74 XMEMCPY(gcm->Y, gcm->buf, 12); in gcm_add_aad() 80 XMEMCPY(gcm->Y_0, gcm->Y, 16); in gcm_add_aad()
|
A D | gcm_mult_h.c | 36 XMEMCPY(T, &gcm->PC[0][I[0]][0], 16); in gcm_mult_h() 52 XMEMCPY(I, T, 16); in gcm_mult_h()
|
/optee_os/core/lib/libtomcrypt/src/pk/ed25519/ |
A D | ed25519_set_key.c | 40 XMEMCPY(key->priv, sk, sizeof(key->priv)); in ed25519_set_key() 52 XMEMCPY(key->pub, pk, sizeof(key->pub)); in ed25519_set_key()
|
A D | ed25519_verify.c | 52 XMEMCPY(m, sig, siglen); in ed25519_verify() 53 XMEMCPY(m + siglen, msg, msglen); in ed25519_verify()
|
/optee_os/core/lib/libtomcrypt/src/pk/x25519/ |
A D | x25519_set_key.c | 40 XMEMCPY(key->priv, k, sizeof(key->priv)); in x25519_set_key() 52 XMEMCPY(key->pub, u, sizeof(key->pub)); in x25519_set_key()
|
/optee_os/core/lib/libtomcrypt/src/pk/pkcs1/ |
A D | pkcs_1_oaep_decode.c | 96 XMEMCPY(seed, msg + x, hLen); in pkcs_1_oaep_decode() 100 XMEMCPY(DB, msg + x, modulus_len - hLen - 1); in pkcs_1_oaep_decode() 161 XMEMCPY(out, DB + x, modulus_len - hLen - 1 - x); in pkcs_1_oaep_decode()
|
A D | pkcs_1_oaep_encode.c | 106 XMEMCPY(DB+x, msg, msglen); in pkcs_1_oaep_encode() 145 XMEMCPY(out+x, seed, hLen); in pkcs_1_oaep_encode() 147 XMEMCPY(out+x, DB, modulus_len - hLen - 1); in pkcs_1_oaep_encode()
|
A D | pkcs_1_pss_encode.c | 117 XMEMCPY(DB + x, salt, saltlen); in pkcs_1_pss_encode() 139 XMEMCPY(out + y, DB, modulus_len - hLen - 1); in pkcs_1_pss_encode() 143 XMEMCPY(out + y, hash, hLen); in pkcs_1_pss_encode()
|
A D | pkcs_1_pss_decode.c | 91 XMEMCPY(DB, sig + x, modulus_len - hLen - 1); in pkcs_1_pss_decode() 95 XMEMCPY(hash, sig + x, hLen); in pkcs_1_pss_decode()
|
/optee_os/core/lib/libtomcrypt/src/hashes/ |
A D | md2.c | 129 XMEMCPY(md->md2.buf + md->md2.curlen, in, (size_t)n); in md2_process() 173 XMEMCPY(md->md2.buf, md->md2.chksum, 16); in md2_done() 177 XMEMCPY(out, md->md2.X, 16); in md2_done()
|
A D | blake2b.c | 245 XMEMCPY(block, key, keylen); in blake2b_init() 388 XMEMCPY(md->blake2b.buf + (left % sizeof(md->blake2b.buf)), in, fill); /* Fill buffer */ in blake2b_process() 400 XMEMCPY(md->blake2b.buf + md->blake2b.curlen, in, inlen); in blake2b_process() 435 XMEMCPY(out, buffer, md->blake2b.outlen); in blake2b_done()
|
A D | blake2s.c | 239 XMEMCPY(block, key, keylen); in blake2s_init() 377 XMEMCPY(md->blake2s.buf + (left % sizeof(md->blake2s.buf)), in, fill); /* Fill buffer */ in blake2s_process() 389 XMEMCPY(md->blake2s.buf + md->blake2s.curlen, in, inlen); in blake2s_process() 423 XMEMCPY(out, buffer, md->blake2s.outlen); in blake2s_done()
|
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
A D | ec25519_export.c | 74 XMEMCPY(out, key->priv, sizeof(key->priv)); in ec25519_export() 87 XMEMCPY(out, key->pub, sizeof(key->pub)); in ec25519_export()
|
/optee_os/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_add_aad.c | 65 XMEMCPY(ocb->adata_buffer+ocb->adata_buffer_bytes, aad, l); in ocb3_add_aad() 96 XMEMCPY(ocb->adata_buffer, data+full_blocks_len, last_block_len); in ocb3_add_aad()
|
/optee_os/core/lib/libtomcrypt/src/misc/hkdf/ |
A D | hkdf.c | 72 XMEMCPY(T + hashsize, info, infolen); in hkdf_expand() 97 XMEMCPY(T, out + hashsize * (N-1), hashsize); in hkdf_expand()
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/set/ |
A D | der_encode_setof.c | 139 XMEMCPY(out, buf, hdrlen); in der_encode_setof() 143 XMEMCPY(out+y, edges[x].start, edges[x].size); in der_encode_setof()
|
/optee_os/core/lib/libtomcrypt/src/misc/pkcs12/ |
A D | pkcs12_kdf.c | 71 XMEMCPY(&key[keylen], A, Alen); in pkcs12_kdf() 75 XMEMCPY(out, key, outlen); in pkcs12_kdf()
|
/optee_os/core/lib/libtomcrypt/src/modes/cbc/ |
A D | cbc_setiv.c | 34 XMEMCPY(cbc->IV, IV, len); in cbc_setiv()
|