Home
last modified time | relevance | path

Searched refs:XMEMCPY (Results 1 – 25 of 77) sorted by relevance

1234

/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_macros.h65 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 Dxts_test.c33 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 Dxts_decrypt.c104 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 Dlrw_setiv.c45 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 Dlrw_getiv.c36 XMEMCPY(IV, lrw->IV, 16); in lrw_getiv()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_export_point.c35 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 Dxcbc_init.c57 XMEMCPY(xcbc->K[0], key, k1); in xcbc_init()
58 XMEMCPY(xcbc->K[1], key+k1, cipher_descriptor[cipher]->block_length); in xcbc_init()
59XMEMCPY(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 Dgcm_add_aad.c71 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 Dgcm_mult_h.c36 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 Ded25519_set_key.c40 XMEMCPY(key->priv, sk, sizeof(key->priv)); in ed25519_set_key()
52 XMEMCPY(key->pub, pk, sizeof(key->pub)); in ed25519_set_key()
A Ded25519_verify.c52 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 Dx25519_set_key.c40 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 Dpkcs_1_oaep_decode.c96 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 Dpkcs_1_oaep_encode.c106 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 Dpkcs_1_pss_encode.c117 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 Dpkcs_1_pss_decode.c91 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 Dmd2.c129 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 Dblake2b.c245 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 Dblake2s.c239 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 Dec25519_export.c74 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 Docb3_add_aad.c65 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 Dhkdf.c72 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 Dder_encode_setof.c139 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 Dpkcs12_kdf.c71 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 Dcbc_setiv.c34 XMEMCPY(cbc->IV, IV, len); in cbc_setiv()

Completed in 33 milliseconds

1234