Home
last modified time | relevance | path

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

12

/optee_os/lib/libmbedtls/mbedtls/library/
A Ddes.c261 (Y) = (((Y) << 1) | ((Y) >> 31)) & 0xFFFFFFFF; \
274 (Y) = (((Y) << 31) | ((Y) >> 1)) & 0xFFFFFFFF; \
432 T = ((Y >> 4) ^ X) & 0x0F0F0F0F; X ^= T; Y ^= (T << 4); in mbedtls_des_setkey()
433 T = ((Y ) ^ X) & 0x10101010; X ^= T; Y ^= (T ); in mbedtls_des_setkey()
440 Y = (RHs[ (Y >> 1) & 0xF] << 3) | (RHs[ (Y >> 9) & 0xF ] << 2) in mbedtls_des_setkey()
456 Y = ((Y << 1) | (Y >> 27)) & 0x0FFFFFFF; in mbedtls_des_setkey()
461 Y = ((Y << 2) | (Y >> 26)) & 0x0FFFFFFF; in mbedtls_des_setkey()
639 DES_IP( X, Y ); in mbedtls_des_crypt_ecb()
647 DES_FP( Y, X ); in mbedtls_des_crypt_ecb()
726 DES_IP( X, Y ); in mbedtls_des3_crypt_ecb()
[all …]
A Dbignum.c268 if( X == Y ) in mbedtls_mpi_copy()
271 if( Y->n == 0 ) in mbedtls_mpi_copy()
286 X->s = Y->s; in mbedtls_mpi_copy()
412 mpi_safe_cond_assign( Y->n, X->p, Y->p, assign ); in mbedtls_mpi_safe_cond_assign()
436 if( X == Y ) in mbedtls_mpi_safe_cond_swap()
460 Y->s = mpi_safe_cond_select_sign( Y->s, s, swap ); in mbedtls_mpi_safe_cond_swap()
467 Y->p[i] = ( Y->p[i] & ~limb_mask ) | ( tmp & limb_mask ); in mbedtls_mpi_safe_cond_swap()
1402 mbedtls_mpi Y; in mbedtls_mpi_cmp_int() local
1408 Y.n = 1; in mbedtls_mpi_cmp_int()
1409 Y.p = p; in mbedtls_mpi_cmp_int()
[all …]
A Daes.c873 uint32_t Y[4]; in mbedtls_internal_aes_encrypt() member
883 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()
884 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()
887 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()
893 ( (uint32_t) FSb[ ( t.Y[3] >> 24 ) & 0xFF ] << 24 ); in mbedtls_internal_aes_encrypt()
899 ( (uint32_t) FSb[ ( t.Y[0] >> 24 ) & 0xFF ] << 24 ); in mbedtls_internal_aes_encrypt()
905 ( (uint32_t) FSb[ ( t.Y[1] >> 24 ) & 0xFF ] << 24 ); in mbedtls_internal_aes_encrypt()
946 uint32_t Y[4]; in mbedtls_internal_aes_decrypt() member
956 AES_RROUND( 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_decrypt()
957 AES_RROUND( 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_decrypt()
[all …]
A Decp.c788 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->Y, &Q->Y ) ); in mbedtls_ecp_copy()
842 mbedtls_mpi_cmp_mpi( &P->Y, &Q->Y ) == 0 && in mbedtls_ecp_point_cmp()
1437 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &T[i]->Y, &T[i]->Y, &ZZi ) ); in ecp_normalize_jac_many()
1552 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &T, &P->Y, &P->Y ) ); in ecp_double_jac()
1677 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->Y, &Y ) ); in ecp_add_mixed()
1724 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &pt->Y, &pt->Y, &ll ) ); in ecp_randomize_jac()
2315 p_eq_g = ( mbedtls_mpi_cmp_mpi( &P->Y, &grp->G.Y ) == 0 && in ecp_mul_comb()
2763 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &YY, &pt->Y, &pt->Y ) ); in ecp_check_pubkey_sw()
2815 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &R->Y, &grp->P, &R->Y ) ); in mbedtls_ecp_mul_shortcuts()
3371 mbedtls_mpi_cmp_mpi( &pub->Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
[all …]
A Dhavege.c52 #define SWAP(X,Y) { uint32_t *T = (X); (X) = (Y); (Y) = T; } argument
A Decp_curves.c620 ecp_mpi_load( &grp->G.Y, gy, gylen ); in ecp_group_load()
723 mbedtls_mpi_free( &grp->G.Y ); in ecp_use_curve25519()
771 mbedtls_mpi_free( &grp->G.Y ); in ecp_use_curve448()
1324 #define DIV_ROUND_UP( X, Y ) ( ( ( X ) + ( Y ) - 1 ) / ( Y ) ) argument
/optee_os/core/lib/libtomcrypt/src/encauth/ocb/
A Ds_ocb_done.c42 unsigned char *Z, *Y, *X; in s_ocb_done() local
60 Y = XMALLOC(MAXBLOCKSIZE); in s_ocb_done()
62 if (X == NULL || Y == NULL || Z == NULL) { in s_ocb_done()
66 if (Y != NULL) { in s_ocb_done()
67 XFREE(Y); in s_ocb_done()
86 if ((err = cipher_descriptor[ocb->cipher]->ecb_encrypt(X, Y, &ocb->key)) != CRYPT_OK) { in s_ocb_done()
100 ct[x] = pt[x] ^ Y[x]; in s_ocb_done()
113 ocb->checksum[x] ^= Y[x] ^ Z[x]; in s_ocb_done()
130 zeromem(Y, MAXBLOCKSIZE); in s_ocb_done()
136 XFREE(Y); in s_ocb_done()
/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()
75 gcm->Y[12] = 0; in gcm_add_aad()
76 gcm->Y[13] = 0; in gcm_add_aad()
77 gcm->Y[14] = 0; in gcm_add_aad()
78 gcm->Y[15] = 1; in gcm_add_aad()
80 XMEMCPY(gcm->Y_0, gcm->Y, 16); in gcm_add_aad()
A Dgcm_process.c71 if (++gcm->Y[y] & 255) { break; } in gcm_process()
74 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
101 if (++gcm->Y[y] & 255) { break; } in gcm_process()
103 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
119 if (++gcm->Y[y] & 255) { break; } in gcm_process()
121 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
137 if (++gcm->Y[y] & 255) { break; } in gcm_process()
139 … if ((err = cipher_descriptor[gcm->cipher]->ecb_encrypt(gcm->Y, gcm->buf, &gcm->K)) != CRYPT_OK) { in gcm_process()
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dbignum.h260 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
268 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
294 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign );
319 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign );
585 int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y );
597 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
614 int mbedtls_mpi_lt_mpi_ct( const mbedtls_mpi *X, const mbedtls_mpi *Y,
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dbignum.h260 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
268 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
294 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign );
319 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign );
585 int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y );
597 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
614 int mbedtls_mpi_lt_mpi_ct( const mbedtls_mpi *X, const mbedtls_mpi *Y,
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbignum.h260 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
268 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
294 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign );
319 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign );
585 int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y );
597 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
614 int mbedtls_mpi_lt_mpi_ct( const mbedtls_mpi *X, const mbedtls_mpi *Y,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dbignum.h260 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
268 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
294 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign );
319 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign );
585 int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y );
597 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
614 int mbedtls_mpi_lt_mpi_ct( const mbedtls_mpi *X, const mbedtls_mpi *Y,
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dbignum.h260 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
268 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
294 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign );
319 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign );
585 int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y );
597 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
614 int mbedtls_mpi_lt_mpi_ct( const mbedtls_mpi *X, const mbedtls_mpi *Y,
/optee_os/lib/libmbedtls/core/
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()
A Decc.c149 (mbedtls_mpi_bitlen(&ecdsa.Q.Y) > key_size_bits) || in ecc_generate_keypair()
166 crypto_bignum_copy(key->y, (void *)&ecdsa.Q.Y); in ecc_generate_keypair()
274 ecdsa.Q.Y = *(mbedtls_mpi *)key->y; in ecc_verify()
304 mbedtls_mpi_init(&ecdsa.Q.Y); in ecc_verify()
329 ecdh.Qp.Y = *(mbedtls_mpi *)public_key->y; in ecc_shared_secret()
343 mbedtls_mpi_init(&ecdh.Qp.Y); in ecc_shared_secret()
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/
A Dmemcmp.c74 #define UNALIGNED(X, Y) \ argument
75 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
A Dstrcpy.c75 #define UNALIGNED(X, Y) \ argument
76 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
A Dstrcmp.c77 #define UNALIGNED(X, Y) \ argument
78 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
A Dmemcpy.c72 #define UNALIGNED(X, Y) \ argument
73 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
A Dstrncmp.c76 #define UNALIGNED(X, Y) \ argument
77 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
A Dstrncpy.c81 #define UNALIGNED(X, Y) \ argument
82 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
A Dmemmove.c75 #define UNALIGNED(X, Y) \ argument
76 (((long)X & (sizeof(long) - 1)) | ((long)Y & (sizeof(long) - 1)))
/optee_os/core/crypto/
A Daes-gcm.c523 void internal_aes_gcm_gfmul(const uint64_t X[2], const uint64_t Y[2], in internal_aes_gcm_gfmul()
532 y[0] = TEE_U64_FROM_BIG_ENDIAN(Y[0]); in internal_aes_gcm_gfmul()
533 y[1] = TEE_U64_FROM_BIG_ENDIAN(Y[1]); in internal_aes_gcm_gfmul()

Completed in 64 milliseconds

12