/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | camellia.c | 442 ulong64 L, R; in camellia_ecb_encrypt() local 446 L ^= skey->camellia.kw[0]; in camellia_ecb_encrypt() 458 a = (ulong32)(L >> 32); in camellia_ecb_encrypt() 480 a = (ulong32)(L >> 32); in camellia_ecb_encrypt() 504 a = (ulong32)(L >> 32); in camellia_ecb_encrypt() 526 L ^= skey->camellia.kw[3]; in camellia_ecb_encrypt() 536 ulong64 L, R; in camellia_ecb_decrypt() local 540 L ^= skey->camellia.kw[3]; in camellia_ecb_decrypt() 554 a = (ulong32)(L >> 32); in camellia_ecb_decrypt() 578 a = (ulong32)(L >> 32); in camellia_ecb_decrypt() [all …]
|
A D | blowfish.c | 395 ulong32 L, R; in _blowfish_ecb_encrypt() local 413 LOAD32H(L, &pt[0]); in _blowfish_ecb_encrypt() 418 L ^= skey->blowfish.K[r++]; R ^= F(L); in _blowfish_ecb_encrypt() 420 L ^= skey->blowfish.K[r++]; R ^= F(L); in _blowfish_ecb_encrypt() 426 L ^= skey->blowfish.K[16]; in _blowfish_ecb_encrypt() 430 STORE32H(L, &ct[4]); in _blowfish_ecb_encrypt() 457 ulong32 L, R; in _blowfish_ecb_decrypt() local 476 LOAD32H(L, &ct[4]); in _blowfish_ecb_decrypt() 485 R ^= F(L); L ^= skey->blowfish.K[r--]; in _blowfish_ecb_decrypt() 487 R ^= F(L); L ^= skey->blowfish.K[r--]; in _blowfish_ecb_decrypt() [all …]
|
A D | cast5.c | 543 ulong32 R, L; in _cast5_ecb_encrypt() local 549 LOAD32H(L,&pt[0]); in _cast5_ecb_encrypt() 551 L ^= FI(R, skey->cast5.K[0], skey->cast5.K[16]); in _cast5_ecb_encrypt() 554 R ^= FI(L, skey->cast5.K[3], skey->cast5.K[19]); in _cast5_ecb_encrypt() 557 L ^= FI(R, skey->cast5.K[6], skey->cast5.K[22]); in _cast5_ecb_encrypt() 560 R ^= FI(L, skey->cast5.K[9], skey->cast5.K[25]); in _cast5_ecb_encrypt() 570 STORE32H(L,&ct[4]); in _cast5_ecb_encrypt() 596 ulong32 R, L; in _cast5_ecb_decrypt() local 603 LOAD32H(L,&ct[4]); in _cast5_ecb_decrypt() 612 R ^= FI(L, skey->cast5.K[9], skey->cast5.K[25]); in _cast5_ecb_decrypt() [all …]
|
A D | rc5.c | 58 ulong32 L[64], *S, A, B, i, j, v, s, t, l; in _rc5_setup() local 84 L[j++] = BSWAP(A); in _rc5_setup() 91 L[j++] = BSWAP(A); in _rc5_setup() 103 B = L[j] = ROL(L[j] + A + B, (A+B)); in _rc5_setup()
|
A D | rc6.c | 55 ulong32 L[64], S[50], A, B, i, j, v, s, l; in _rc6_setup() local 74 L[j++] = BSWAP(A); in _rc6_setup() 82 L[j++] = BSWAP(A); in _rc6_setup() 93 B = L[j] = ROL(L[j] + A + B, (A+B)); in _rc6_setup()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | rsa_internal.c | 203 mbedtls_mpi K, L; in mbedtls_rsa_deduce_private_exponent() local 216 mbedtls_mpi_init( &L ); in mbedtls_rsa_deduce_private_exponent() 235 mbedtls_mpi_free( &L ); in mbedtls_rsa_deduce_private_exponent() 249 mbedtls_mpi K, L; in mbedtls_rsa_validate_crt() local 251 mbedtls_mpi_init( &L ); in mbedtls_rsa_validate_crt() 264 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &L, &L, &K ) ); in mbedtls_rsa_validate_crt() 284 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &L, &L, &K ) ); in mbedtls_rsa_validate_crt() 323 mbedtls_mpi_free( &L ); in mbedtls_rsa_validate_crt() 338 mbedtls_mpi K, L; in mbedtls_rsa_validate_params() local 341 mbedtls_mpi_init( &L ); in mbedtls_rsa_validate_params() [all …]
|
A D | cmac.c | 123 unsigned char L[MBEDTLS_CIPHER_BLKSIZE_MAX]; in cmac_generate_subkeys() local 126 mbedtls_platform_zeroize( L, sizeof( L ) ); in cmac_generate_subkeys() 131 if( ( ret = mbedtls_cipher_update( ctx, L, block_size, L, &olen ) ) != 0 ) in cmac_generate_subkeys() 137 if( ( ret = cmac_multiply_by_u( K1, L , block_size ) ) != 0 ) in cmac_generate_subkeys() 144 mbedtls_platform_zeroize( L, sizeof( L ) ); in cmac_generate_subkeys()
|
A D | rsa.c | 538 mbedtls_mpi H, G, L; in mbedtls_rsa_gen_key() local 553 mbedtls_mpi_init( &L ); in mbedtls_rsa_gen_key() 598 MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( &L, NULL, &H, &G ) ); in mbedtls_rsa_gen_key() 599 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( &ctx->D, &ctx->E, &L ) ); in mbedtls_rsa_gen_key() 633 mbedtls_mpi_free( &L ); in mbedtls_rsa_gen_key()
|
/optee_os/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_add_nonce.c | 32 if ((15 - ccm->noncelen) > ccm->L) { in ccm_add_nonce() 33 ccm->L = 15 - ccm->noncelen; in ccm_add_nonce() 37 if ((ccm->noncelen + ccm->L) > 15) { in ccm_add_nonce() 38 ccm->noncelen = 15 - ccm->L; in ccm_add_nonce() 45 (ccm->L-1)); in ccm_add_nonce() 48 for (y = 0; y < (16 - (ccm->L + 1)); y++) { in ccm_add_nonce() 56 for (y = ccm->L; y < 4; y++) { in ccm_add_nonce() 61 for (y = 0; ccm->L > 4 && (ccm->L-y)>4; y++) { in ccm_add_nonce() 64 for (; y < ccm->L; y++) { in ccm_add_nonce() 95 ccm->ctr[x++] = (unsigned char)ccm->L-1; in ccm_add_nonce() [all …]
|
A D | ccm_memory.c | 104 L = 0; in ccm_memory() 106 ++L; in ccm_memory() 109 if (L <= 1) { in ccm_memory() 110 L = 2; in ccm_memory() 115 if ((15 - noncelen) > L) { in ccm_memory() 116 L = 15 - noncelen; in ccm_memory() 148 (L-1)); in ccm_memory() 159 for (y = L; y < 4; y++) { in ccm_memory() 164 for (y = 0; L > 4 && (L-y)>4; y++) { in ccm_memory() 167 for (; y < L; y++) { in ccm_memory() [all …]
|
A D | ccm_init.c | 58 ccm->L = 0; in ccm_init() 60 ++ccm->L; in ccm_init() 63 if (ccm->L <= 1) { in ccm_init() 64 ccm->L = 2; in ccm_init()
|
A D | ccm_done.c | 44 for (y = 15; y > 15 - ccm->L; y--) { in ccm_done()
|
A D | ccm_process.c | 53 for (z = 15; z > 15-ccm->L; z--) { in ccm_process()
|
/optee_os/core/lib/libtomcrypt/src/mac/pmac/ |
A D | pmac_init.c | 48 unsigned char *L; in pmac_init() local 85 L = XMALLOC(pmac->block_len); in pmac_init() 86 if (L == NULL) { in pmac_init() 91 zeromem(L, pmac->block_len); in pmac_init() 92 if ((err = cipher_descriptor[cipher]->ecb_encrypt(L, L, &pmac->key)) != CRYPT_OK) { in pmac_init() 97 XMEMCPY(pmac->Ls[0], L, pmac->block_len); in pmac_init() 113 m = L[pmac->block_len-1] & 1; in pmac_init() 117 pmac->Lr[x] = ((L[x] >> 1) | (L[x-1] << 7)) & 255; in pmac_init() 119 pmac->Lr[0] = L[0] >> 1; in pmac_init() 137 zeromem(L, pmac->block_len); in pmac_init() [all …]
|
/optee_os/core/lib/libtomcrypt/src/encauth/ocb/ |
A D | ocb_init.c | 81 zeromem(ocb->L, ocb->block_len); in ocb_init() 82 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ocb->L, ocb->L, &ocb->key)) != CRYPT_OK) { in ocb_init() 88 ocb->R[x] = ocb->L[x] ^ nonce[x]; in ocb_init() 95 XMEMCPY(ocb->Ls[0], ocb->L, ocb->block_len); in ocb_init() 111 m = ocb->L[ocb->block_len-1] & 1; in ocb_init() 115 ocb->Lr[x] = ((ocb->L[x] >> 1) | (ocb->L[x-1] << 7)) & 255; in ocb_init() 117 ocb->Lr[0] = ocb->L[0] >> 1; in ocb_init()
|
/optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_generate_pqg.c | 32 unsigned long L, N, n, outbytes, seedbytes, counter, j, i; in _dsa_make_params() local 76 L = (unsigned long)modulus_size * 8; in _dsa_make_params() 82 mr_tests_p = (L <= 2048) ? 3 : 2; in _dsa_make_params() 88 if (L <= 1024) { mr_tests_p = 40; } in _dsa_make_params() 89 else if (L <= 2048) { mr_tests_p = 56; } in _dsa_make_params() 113 n = ((L + outbytes*8 - 1) / (outbytes*8)) - 1; in _dsa_make_params() 121 if ((err = mp_2expt(t2L1, L-1)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params() 145 for(counter=0; counter < 4*L && !found_p; counter++) { in _dsa_make_params()
|
/optee_os/lib/libutils/isoc/include/ |
A D | stdint.h | 175 #define L(v) v macro 181 #define L(v) v ## L macro 198 #define INT64_C(v) L(v)
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | stdint.h | 175 #define L(v) v macro 181 #define L(v) v ## L macro 198 #define INT64_C(v) L(v)
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | stdint.h | 175 #define L(v) v macro 181 #define L(v) v ## L macro 198 #define INT64_C(v) L(v)
|
/optee_os/core/lib/libtomcrypt/src/hashes/ |
A D | md2.c | 62 unsigned char L; in md2_update_chksum() local 63 L = md->md2.chksum[15]; in md2_update_chksum() 69 L = (md->md2.chksum[j] ^= PI_SUBST[(int)(md->md2.buf[j] ^ L)] & 255); in md2_update_chksum()
|
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
A D | tweetnacl.c | 350 static const u64 L[32] = {0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, 0xd6, 0x9c, 0xf7, 0xa2, 0… variable 358 x[j] += carry - 16 * x[i] * L[j - (i - 32)]; in modL() 367 x[j] += carry - (x[31] >> 4) * L[j]; in modL() 371 FOR(j,32) x[j] -= carry * L[j]; in modL()
|
/optee_os/core/arch/arm/crypto/ |
A D | ghash-ce-core_a32.S | 96 veor t0q, t0q, t4q @ L = E + F 101 veor t0l, t0l, t0h @ t0 = (L) (P0 + P1) << 8
|
/optee_os/core/lib/zlib/ |
A D | inflate.c | 668 state->check = crc32(0L, Z_NULL, 0); 702 strm->adler = state->check = adler32(0L, Z_NULL, 0); 834 strm->adler = state->check = crc32(0L, Z_NULL, 0); 849 strm->adler = state->check = adler32(0L, Z_NULL, 0); 1344 dictid = adler32(0L, Z_NULL, 0);
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 287 unsigned char L[MAXBLOCKSIZE], /* L value */ member 409 unsigned long L, /* L value */ member
|
/optee_os/ |
A D | MAINTAINERS | 70 L: Broadcom <bcm-optee-feedback-list.pdl@broadcom.com> 297 L: tee-dev@lists.linaro.org
|