Home
last modified time | relevance | path

Searched refs:Y (Results 1 – 25 of 32) sorted by relevance

12

/optee_os/lib/libmbedtls/mbedtls/library/
H A Ddes.c213 #define DES_IP(X, Y) \ argument
216 T = (((X) >> 4) ^ (Y)) & 0x0F0F0F0F; (Y) ^= T; (X) ^= (T << 4); \
217 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
218 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
219 T = (((Y) >> 8) ^ (X)) & 0x00FF00FF; (X) ^= T; (Y) ^= (T << 8); \
220 (Y) = (((Y) << 1) | ((Y) >> 31)) & 0xFFFFFFFF; \
221 T = ((X) ^ (Y)) & 0xAAAAAAAA; (Y) ^= T; (X) ^= T; \
228 #define DES_FP(X, Y) \ argument
232 T = ((X) ^ (Y)) & 0xAAAAAAAA; (X) ^= T; (Y) ^= T; \
233 (Y) = (((Y) << 31) | ((Y) >> 1)) & 0xFFFFFFFF; \
[all …]
H A Dbignum.c61 const mbedtls_mpi *Y, in mbedtls_mpi_lt_mpi_ct() argument
66 if (X->n != Y->n) { in mbedtls_mpi_lt_mpi_ct()
75 Y_is_negative = mbedtls_ct_bool((Y->s & 2) >> 1); in mbedtls_mpi_lt_mpi_ct()
92 void * const p[2] = { X->p, Y->p }; in mbedtls_mpi_lt_mpi_ct()
122 const mbedtls_mpi *Y, in mbedtls_mpi_safe_cond_assign() argument
127 MBEDTLS_MPI_CHK(mbedtls_mpi_grow(X, Y->n)); in mbedtls_mpi_safe_cond_assign()
132 X->s = mbedtls_ct_mpi_sign_if(do_assign, Y->s, X->s); in mbedtls_mpi_safe_cond_assign()
134 mbedtls_mpi_core_cond_assign(X->p, Y->p, Y->n, do_assign); in mbedtls_mpi_safe_cond_assign()
137 for (size_t i = Y->n; i < X->n; i++) { in mbedtls_mpi_safe_cond_assign()
153 mbedtls_mpi *Y, in mbedtls_mpi_safe_cond_swap() argument
[all …]
H A Decp.c496 if (grp->G.Y.p == NULL) { in mbedtls_ecp_get_type()
509 mbedtls_mpi_init(&pt->Y); in mbedtls_ecp_point_init()
555 mbedtls_mpi_free(&(pt->Y)); in mbedtls_ecp_point_free()
625 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&P->Y, &Q->Y)); in mbedtls_ecp_copy()
647 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Y, 1)); in mbedtls_ecp_set_zero()
669 mbedtls_mpi_cmp_mpi(&P->Y, &Q->Y) == 0 && in mbedtls_ecp_point_cmp()
685 MBEDTLS_MPI_CHK(mbedtls_mpi_read_string(&P->Y, radix, y)); in mbedtls_ecp_point_read_string()
745 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->Y, buf + 1 + plen, plen)); in mbedtls_ecp_point_write_binary()
753 buf[0] = 0x02 + mbedtls_mpi_get_bit(&P->Y, 0); in mbedtls_ecp_point_write_binary()
766 mbedtls_mpi *Y,
[all …]
H A Daes.c891 uint32_t Y[4]; in mbedtls_internal_aes_encrypt() member
900 AES_FROUND(t.Y[0], t.Y[1], t.Y[2], t.Y[3], t.X[0], t.X[1], t.X[2], t.X[3]); in mbedtls_internal_aes_encrypt()
901 AES_FROUND(t.X[0], t.X[1], t.X[2], t.X[3], t.Y[0], t.Y[1], t.Y[2], t.Y[3]); in mbedtls_internal_aes_encrypt()
904 AES_FROUND(t.Y[0], t.Y[1], t.Y[2], t.Y[3], t.X[0], t.X[1], t.X[2], t.X[3]); in mbedtls_internal_aes_encrypt()
907 ((uint32_t) FSb[MBEDTLS_BYTE_0(t.Y[0])]) ^ in mbedtls_internal_aes_encrypt()
908 ((uint32_t) FSb[MBEDTLS_BYTE_1(t.Y[1])] << 8) ^ in mbedtls_internal_aes_encrypt()
909 ((uint32_t) FSb[MBEDTLS_BYTE_2(t.Y[2])] << 16) ^ in mbedtls_internal_aes_encrypt()
910 ((uint32_t) FSb[MBEDTLS_BYTE_3(t.Y[3])] << 24); in mbedtls_internal_aes_encrypt()
913 ((uint32_t) FSb[MBEDTLS_BYTE_0(t.Y[1])]) ^ in mbedtls_internal_aes_encrypt()
914 ((uint32_t) FSb[MBEDTLS_BYTE_1(t.Y[2])] << 8) ^ in mbedtls_internal_aes_encrypt()
[all …]
H A Dbignum_mod_raw.h127 mbedtls_mpi_uint *Y,
H A Dbignum_mod_raw.c35 mbedtls_mpi_uint *Y, in mbedtls_mpi_mod_raw_cond_swap() argument
39 mbedtls_mpi_core_cond_swap(X, Y, N->limbs, mbedtls_ct_bool(swap)); in mbedtls_mpi_mod_raw_cond_swap()
H A Dbignum_core.c188 mbedtls_mpi_uint *Y, in mbedtls_mpi_core_cond_swap() argument
192 if (X == Y) { in mbedtls_mpi_core_cond_swap()
198 X[i] = mbedtls_ct_mpi_uint_if(swap, Y[i], X[i]); in mbedtls_mpi_core_cond_swap()
199 Y[i] = mbedtls_ct_mpi_uint_if(swap, tmp, Y[i]); in mbedtls_mpi_core_cond_swap()
H A Dbignum_core.h223 mbedtls_mpi_uint *Y,
/optee_os/core/lib/libtomcrypt/src/encauth/ocb/
H A Ds_ocb_done.c35 unsigned char *Z, *Y, *X; in s_ocb_done() local
53 Y = XMALLOC(MAXBLOCKSIZE); in s_ocb_done()
55 if (X == NULL || Y == NULL || Z == NULL) { in s_ocb_done()
59 if (Y != NULL) { in s_ocb_done()
60 XFREE(Y); in s_ocb_done()
79 if ((err = cipher_descriptor[ocb->cipher]->ecb_encrypt(X, Y, &ocb->key)) != CRYPT_OK) { in s_ocb_done()
93 ct[x] = pt[x] ^ Y[x]; in s_ocb_done()
106 ocb->checksum[x] ^= Y[x] ^ Z[x]; in s_ocb_done()
123 zeromem(Y, MAXBLOCKSIZE); in s_ocb_done()
129 XFREE(Y); in s_ocb_done()
/optee_os/core/lib/libtomcrypt/src/encauth/gcm/
H A Dgcm_add_aad.c64 XMEMCPY(gcm->Y, gcm->X, 16); in gcm_add_aad()
67 XMEMCPY(gcm->Y, gcm->buf, 12); in gcm_add_aad()
68 gcm->Y[12] = 0; in gcm_add_aad()
69 gcm->Y[13] = 0; in gcm_add_aad()
70 gcm->Y[14] = 0; in gcm_add_aad()
71 gcm->Y[15] = 1; in gcm_add_aad()
73 XMEMCPY(gcm->Y_0, gcm->Y, 16); in gcm_add_aad()
H A Dgcm_process.c64 if (++gcm->Y[y] & 255) { break; } in gcm_process()
67 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
94 if (++gcm->Y[y] & 255) { break; } in gcm_process()
96 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
112 if (++gcm->Y[y] & 255) { break; } in gcm_process()
114 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
130 if (++gcm->Y[y] & 255) { break; } in gcm_process()
132 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dbignum.h312 int mbedtls_mpi_copy(mbedtls_mpi *X, const mbedtls_mpi *Y);
320 void mbedtls_mpi_swap(mbedtls_mpi *X, mbedtls_mpi *Y);
350 int mbedtls_mpi_safe_cond_assign(mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign);
379 int mbedtls_mpi_safe_cond_swap(mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char swap);
647 int mbedtls_mpi_cmp_abs(const mbedtls_mpi *X, const mbedtls_mpi *Y);
659 int mbedtls_mpi_cmp_mpi(const mbedtls_mpi *X, const mbedtls_mpi *Y);
676 int mbedtls_mpi_lt_mpi_ct(const mbedtls_mpi *X, const mbedtls_mpi *Y,
/optee_os/lib/libmbedtls/core/
H A Dsm2-pke.c40 mres = mbedtls_mpi_read_binary(&p->Y, ptr, SM2_INT_SIZE_BYTES); in sm2_uncompressed_bytes_to_point()
168 mbedtls_mpi_size(&x2y2p.Y) > SM2_INT_SIZE_BYTES) { in sm2_mbedtls_pke_decrypt()
178 mres = mbedtls_mpi_write_binary(&x2y2p.Y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_decrypt()
275 size_t ysize = mbedtls_mpi_size(&p->Y); in sm2_point_to_bytes()
288 mres = mbedtls_mpi_write_binary(&p->Y, buf + 1 + SM2_INT_SIZE_BYTES, in sm2_point_to_bytes()
354 mbedtls_mpi_copy(&PB.Y, (mbedtls_mpi *)key->y); in sm2_mbedtls_pke_encrypt()
364 mbedtls_mpi_size(&x2y2p.Y) > SM2_INT_SIZE_BYTES) { in sm2_mbedtls_pke_encrypt()
374 mres = mbedtls_mpi_write_binary(&x2y2p.Y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_encrypt()
H A Decc.c139 (mbedtls_mpi_bitlen(&ecdsa.Q.Y) > key_size_bits) || in ecc_generate_keypair()
156 crypto_bignum_copy(key->y, (void *)&ecdsa.Q.Y); in ecc_generate_keypair()
277 ecdsa.Q.Y = *(mbedtls_mpi *)key->y; in ecc_verify()
307 mbedtls_mpi_init(&ecdsa.Q.Y); in ecc_verify()
336 ecdh.ctx.mbed_ecdh.Qp.Y = *(mbedtls_mpi *)public_key->y; in ecc_shared_secret()
350 mbedtls_mpi_init(&ecdh.ctx.mbed_ecdh.Qp.Y); in ecc_shared_secret()
H A Dsm2-kep.c92 mres = mbedtls_mpi_write_binary(&grp->G.Y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
233 mres = mbedtls_mpi_write_binary(&UV->Y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
366 mbedtls_mpi_copy(&RB.Y, (mbedtls_mpi *)peer_eph_key->y); in crypto_acipher_sm2_kep_derive()
389 mres = mbedtls_mpi_copy(&PB.Y, (mbedtls_mpi *)peer_key->y); in crypto_acipher_sm2_kep_derive()
424 mres = mbedtls_mpi_write_binary(&U.Y, xUyUZAZB + SM2_INT_SIZE_BYTES, in crypto_acipher_sm2_kep_derive()
/optee_os/lib/libutils/isoc/newlib/
H A Dmemcmp.c74 #define UNALIGNED(X, Y) \ argument
75 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
H A Dstrcpy.c75 #define UNALIGNED(X, Y) \ argument
76 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
H A Dstrcmp.c77 #define UNALIGNED(X, Y) \ argument
78 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
H A Dmemcpy.c72 #define UNALIGNED(X, Y) \ argument
73 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
H A Dstrncmp.c76 #define UNALIGNED(X, Y) \ argument
77 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
H A Dstrncpy.c81 #define UNALIGNED(X, Y) \ argument
82 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
H A Dmemmove.c75 #define UNALIGNED(X, Y) \ argument
76 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
/optee_os/core/include/crypto/
H A Dinternal_aes-gcm.h87 void internal_aes_gcm_gfmul(const uint64_t X[2], const uint64_t Y[2],
/optee_os/core/crypto/
H A Daes-gcm.c521 void internal_aes_gcm_gfmul(const uint64_t X[2], const uint64_t Y[2], in internal_aes_gcm_gfmul()
530 y[0] = TEE_U64_FROM_BIG_ENDIAN(Y[0]); in internal_aes_gcm_gfmul()
531 y[1] = TEE_U64_FROM_BIG_ENDIAN(Y[1]); in internal_aes_gcm_gfmul()
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
H A Dtweetnacl.c25Y = {0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x666… variable
304 set25519(q[1],Y); in scalarbase()
306 M(q[3],X,Y); in scalarbase()

12