Home
last modified time | relevance | path

Searched +full:- +full:d (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/optee_os/core/arch/arm/crypto/
H A Dsha3_armv8a_ce_a64.S1 /* SPDX-License-Identifier: BSD-2-Clause */
7 /* Core SHA-3 transform using v8 Crypto Extensions */
14 .set .Lv\b\().2d, \b
48 ld1 { v0.1d- v3.1d}, [x0]
49 ld1 { v4.1d- v7.1d}, [x8], #32
50 ld1 { v8.1d-v11.1d}, [x8], #32
51 ld1 {v12.1d-v15.1d}, [x8], #32
52 ld1 {v16.1d-v19.1d}, [x8], #32
53 ld1 {v20.1d-v23.1d}, [x8], #32
54 ld1 {v24.1d}, [x8]
[all …]
H A Dghash-ce-core_a64.S1 /* SPDX-License-Identifier: BSD-2-Clause */
4 * Copyright (C) 2014 - 2017 Linaro Ltd. <ard.biesheuvel@linaro.org>
14 * Only increase the lowest quarter, that is, 32-bits of the counter. If
67 .arch armv8-a+crypto
70 pmull \rd\().1q, \rn\().1d, \rm\().1d
74 pmull2 \rd\().1q, \rn\().2d, \rm\().2d
113 pmull\t \rq\().8h, \ad, \bd // D = A*B
119 uzp1 t4.2d, t3.2d, t5.2d
120 uzp2 t3.2d, t3.2d, t5.2d
121 uzp1 t6.2d, t7.2d, t9.2d
[all …]
H A Dsha512_armv8a_ce_a64.S1 /* SPDX-License-Identifier: BSD-2-Clause */
7 /* Core SHA-384/SHA-512 transform using v8 Crypto Extensions */
14 .set .Lv\b\().2d, \b
34 * The SHA-512 round constants
83 ld1 {v\rc1\().2d}, [x4], #16
85 add v5.2d, v\rc0\().2d, v\in0\().2d
89 add v\i3\().2d, v\i3\().2d, v5.2d
92 sha512su0 v\in0\().2d, v\in1\().2d
94 sha512h q\i3, q6, v7.2d
96 sha512su1 v\in0\().2d, v\in2\().2d, v5.2d
[all …]
/optee_os/core/lib/libtomcrypt/src/hashes/
H A Dmd5.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
38 #define FF(a,b,c,d,M,s,t) \ argument
39 a = (a + F(b,c,d) + M + t); a = ROL(a, s) + b;
41 #define GG(a,b,c,d,M,s,t) \ argument
42 a = (a + G(b,c,d) + M + t); a = ROL(a, s) + b;
44 #define HH(a,b,c,d,M,s,t) \ argument
45 a = (a + H(b,c,d) + M + t); a = ROL(a, s) + b;
47 #define II(a,b,c,d,M,s,t) \ argument
48 a = (a + I(b,c,d) + M + t); a = ROL(a, s) + b;
[all …]
H A Dmd4.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
54 #define FF(a, b, c, d, x, s) { \ argument
55 (a) += F ((b), (c), (d)) + (x); \
58 #define GG(a, b, c, d, x, s) { \ argument
59 (a) += G ((b), (c), (d)) + (x) + 0x5a827999UL; \
62 #define HH(a, b, c, d, x, s) { \ argument
63 (a) += H ((b), (c), (d)) + (x) + 0x6ed9eba1UL; \
73 ulong32 x[16], a, b, c, d; in ss_md4_compress() local
77 a = md->md4.state[0]; in ss_md4_compress()
[all …]
H A Dsha1.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
42 ulong32 a,b,c,d,e,W[80],i; in ss_sha1_compress() local
47 /* copy the state into 512-bits into W[0..15] */ in ss_sha1_compress()
53 a = md->sha1.state[0]; in ss_sha1_compress()
54 b = md->sha1.state[1]; in ss_sha1_compress()
55 c = md->sha1.state[2]; in ss_sha1_compress()
56 d = md->sha1.state[3]; in ss_sha1_compress()
57 e = md->sha1.state[4]; in ss_sha1_compress()
61 W[i] = ROL(W[i-3] ^ W[i-8] ^ W[i-14] ^ W[i-16], 1); in ss_sha1_compress()
[all …]
/optee_os/core/tee/
H A Duuid.c1 // SPDX-License-Identifier: BSD-2-Clause
10 void tee_uuid_to_octets(uint8_t *d, const TEE_UUID *s) in tee_uuid_to_octets() argument
12 d[0] = s->timeLow >> 24; in tee_uuid_to_octets()
13 d[1] = s->timeLow >> 16; in tee_uuid_to_octets()
14 d[2] = s->timeLow >> 8; in tee_uuid_to_octets()
15 d[3] = s->timeLow; in tee_uuid_to_octets()
16 d[4] = s->timeMid >> 8; in tee_uuid_to_octets()
17 d[5] = s->timeMid; in tee_uuid_to_octets()
18 d[6] = s->timeHiAndVersion >> 8; in tee_uuid_to_octets()
19 d[7] = s->timeHiAndVersion; in tee_uuid_to_octets()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dsha1.c2 * FIPS-180-1 compliant SHA-1 implementation
5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
8 * The SHA-1 standard was published by NIST in 1993.
10 * http://www.itl.nist.gov/fipspubs/fip180-1.htm
48 * SHA-1 context setup
52 ctx->total[0] = 0; in mbedtls_sha1_starts()
53 ctx->total[1] = 0; in mbedtls_sha1_starts()
55 ctx->state[0] = 0x67452301; in mbedtls_sha1_starts()
56 ctx->state[1] = 0xEFCDAB89; in mbedtls_sha1_starts()
57 ctx->state[2] = 0x98BADCFE; in mbedtls_sha1_starts()
[all …]
H A Dmd5.c5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
52 ctx->total[0] = 0; in mbedtls_md5_starts()
53 ctx->total[1] = 0; in mbedtls_md5_starts()
55 ctx->state[0] = 0x67452301; in mbedtls_md5_starts()
56 ctx->state[1] = 0xEFCDAB89; in mbedtls_md5_starts()
57 ctx->state[2] = 0x98BADCFE; in mbedtls_md5_starts()
58 ctx->state[3] = 0x10325476; in mbedtls_md5_starts()
68 uint32_t X[16], A, B, C, D; in mbedtls_internal_md5_process() member
89 (((x) << (n)) | (((x) & 0xFFFFFFFF) >> (32 - (n)))) in mbedtls_internal_md5_process()
91 #define P(a, b, c, d, k, s, t) \ in mbedtls_internal_md5_process() argument
[all …]
H A Dripemd160.c2 * RIPE MD-160 implementation
5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 * The RIPEMD-160 algorithm was designed by RIPE in 1996
11 * http://ehash.iaik.tugraz.at/wiki/RIPEMD-160
49 * RIPEMD-160 context setup
53 ctx->total[0] = 0; in mbedtls_ripemd160_starts()
54 ctx->total[1] = 0; in mbedtls_ripemd160_starts()
56 ctx->state[0] = 0x67452301; in mbedtls_ripemd160_starts()
57 ctx->state[1] = 0xEFCDAB89; in mbedtls_ripemd160_starts()
58 ctx->state[2] = 0x98BADCFE; in mbedtls_ripemd160_starts()
[all …]
H A Drsa_alt_helpers.h4 * \brief Context-independent RSA helper functions
6 * This module declares some RSA-related helper functions useful when
13 * End-users of Mbed TLS who are not providing their own alternative RSA
23 * (1) Parameter-generating helpers. These are:
24 * - mbedtls_rsa_deduce_primes
25 * - mbedtls_rsa_deduce_private_exponent
26 * - mbedtls_rsa_deduce_crt
30 * (2) Parameter-checking helpers. These are:
31 * - mbedtls_rsa_validate_params
32 * - mbedtls_rsa_validate_crt
[all …]
H A Drsa_alt_helpers.c5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 * Setting F := lcm(P-1,Q-1), the idea is as follows:
25 * square roots of 1 in Z/PZ and Z/QZ are +1 and -1, this leaves the four
26 * possibilities X^(F/2) = (+-1, +-1). If it happens that X^(F/2) = (-1,+1)
27 * or (+1,-1), then gcd(X^(F/2) + 1, N) will be equal to one of the prime
31 * construction still applies since (-)^K is the identity on the set of
34 * The public and private key primitives (-)^E and (-)^D are mutually inverse
35 * bijections on Z/NZ if and only if (-)^(DE) is the identity on Z/NZ, i.e.
36 * if and only if DE - 1 is a multiple of F, say DE - 1 = F * L.
39 * DE - 1 = FL = (F/2) * (2^(t+1)) * K,
[all …]
H A Dbn_mul.h4 * \brief Multi-precision integer library
8 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
12 * to destination vector [d] and set carry c.
16 * . IA-32 (386+) . AMD64 / EM64T
17 * . IA-32 (SSE2) . Motorola 68000
18 * . PowerPC, 32-bit . MicroBlaze
19 * . PowerPC, 64-bit . TriCore
38 #define MBEDTLS_BYTES_TO_T_UINT_4(a, b, c, d) \ argument
42 ((mbedtls_mpi_uint) (d) << 24)
47 #define MBEDTLS_BYTES_TO_T_UINT_8(a, b, c, d, e, f, g, h) \ argument
[all …]
/optee_os/core/drivers/crypto/stm32/
H A Decc.c1 // SPDX-License-Identifier: BSD-2-Clause
3 * Copyright (c) 2021, STMicroelectronics - All Rights Reserved
73 struct stm32_pka_bn d = { }; in stm32_gen_keypair() local
82 res = curve_to_pka_cid(key->curve, &cid); in stm32_gen_keypair()
91 crypto_bignum_num_bytes(key->d) > bytes || in stm32_gen_keypair()
92 crypto_bignum_num_bytes(key->x) > bytes || in stm32_gen_keypair()
93 crypto_bignum_num_bytes(key->y) > bytes) in stm32_gen_keypair()
96 d.val = calloc(1, bytes); in stm32_gen_keypair()
97 d.size = bytes; in stm32_gen_keypair()
98 if (!d.val) in stm32_gen_keypair()
[all …]
/optee_os/lib/libutils/compiler-rt/lib/builtins/
H A Dint_div_impl.inc1 //===-- int_div_impl.inc - Integer division ---------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
15 // Adapted from Figure 3-40 of The PowerPC Compiler Writer's Guide
16 static __inline fixuint_t __udivXi3(fixuint_t n, fixuint_t d) {
18 // d == 0 cases are unspecified.
19 unsigned sr = (d ? clz(d) : N) - (n ? clz(n) : N);
20 // 0 <= sr <= N - 1 or sr is very large.
21 if (sr > N - 1) // n < d
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_import_pkcs8.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
23 if (flexi->type != LTC_ASN1_SEQUENCE) { in s_der_flexi_sequence_cmp()
26 cur = flexi->child; in s_der_flexi_sequence_cmp()
27 while(check->t != LTC_ASN1_EOL) { in s_der_flexi_sequence_cmp()
28 if (!LTC_ASN1_IS_TYPE(cur, check->t)) { in s_der_flexi_sequence_cmp()
31 if (check->pp != NULL) *check->pp = (ltc_asn1_list*)cur; in s_der_flexi_sequence_cmp()
32 cur = cur->next; in s_der_flexi_sequence_cmp()
77 (pk_oid_cmp_with_asn1(pka_ec_oid, seq->child) == CRYPT_OK)) { in ecc_import_pkcs8()
90 if (LTC_ASN1_IS_TYPE(seq->child->next, LTC_ASN1_OBJECT_IDENTIFIER)) { in ecc_import_pkcs8()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
H A Dtweetnacl.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
22D = {0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, 0xe898, 0x7779, 0x4079, 0x8cc… variable
31 u32 d = 0; in vn() local
32 FOR(i,n) d |= x[i]^y[i]; in vn()
33 return (1 & ((d - 1) >> 8)) - 1; in vn()
54 o[(i+1)*(i<15)]+=c-1+37*(c-1)*(i==15); in car25519()
55 o[i]-=c<<16; in car25519()
61 i64 t,i,c=~(b-1); in sel25519()
78 m[0]=t[0]-0xffed; in pack25519()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/
H A Dnoekeon.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
33 #define kTHETA(a, b, c, d) \ argument
35 b ^= temp; d ^= temp; \
36 temp = b^d; temp = temp ^ ROLc(temp, 8) ^ RORc(temp, 8); \
39 #define THETA(k, a, b, c, d) \ argument
41 b ^= temp ^ k[1]; d ^= temp ^ k[3]; \
42 temp = b^d; temp = temp ^ ROLc(temp, 8) ^ RORc(temp, 8); \
45 #define GAMMA(a, b, c, d) \ argument
46 b ^= ~(d|c); \
[all …]
H A Drc6.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
74 A <<= (8 * (4 - (keylen&3))); in s_rc6_setup()
93 skey->rc6.K[i] = S[i]; in s_rc6_setup()
120 ulong32 a,b,c,d,t,u; in s_rc6_ecb_encrypt() local
127 LOAD32L(a,&pt[0]);LOAD32L(b,&pt[4]);LOAD32L(c,&pt[8]);LOAD32L(d,&pt[12]); in s_rc6_ecb_encrypt()
129 b += skey->rc6.K[0]; in s_rc6_ecb_encrypt()
130 d += skey->rc6.K[1]; in s_rc6_ecb_encrypt()
132 #define RND(a,b,c,d) \ in s_rc6_ecb_encrypt() argument
134 u = (d * (d + d + 1)); u = ROLc(u, 5); \ in s_rc6_ecb_encrypt()
[all …]
H A Dserpent.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
4 /* Based on serpent.cpp - originally written and placed in the public domain by Wei Dai
7 On 2017-10-16 wikipedia says:
30 #define s_lt(i,a,b,c,d,e) { \ argument
33 d = ROLc(d ^ c ^ (a << 3), 7); \
35 a = ROLc(a ^ b ^ d, 5); \
36 c = ROLc(c ^ d ^ (b << 7), 22); \
40 #define s_ilt(i,a,b,c,d,e) { \ argument
43 c ^= d ^ (b << 7); \
[all …]
/optee_os/core/drivers/crypto/caam/utils/
H A Dutils_sgt_v1.c1 // SPDX-License-Identifier: BSD-2-Clause
5 * Scatter-gather entry management code for version 1
18 SGT_TRACE("SGT[%d] (%p)", idx, &sgt->sgt[idx]); in sgt_entry_trace()
19 SGT_TRACE("SGT[%d]->data = %p", idx, sgt->buf[idx].data); in sgt_entry_trace()
20 SGT_TRACE("SGT[%d]->length = %zu", idx, sgt->buf[idx].length); in sgt_entry_trace()
21 SGT_TRACE("SGT[%d]->paddr = 0x%" PRIxPA, idx, sgt->buf[idx].paddr); in sgt_entry_trace()
22 SGT_TRACE("SGT[%d]->ptr_ms = %" PRIx32, idx, sgt->sgt[idx].v1.ptr_ms); in sgt_entry_trace()
23 SGT_TRACE("SGT[%d]->ptr_ls = %" PRIx32, idx, sgt->sgt[idx].v1.ptr_ls); in sgt_entry_trace()
24 SGT_TRACE("SGT[%d]->len_f_e = %" PRIx32, idx, in sgt_entry_trace()
25 sgt->sgt[idx].v1.len_f_e); in sgt_entry_trace()
[all …]
/optee_os/core/lib/libtomcrypt/src/misc/pbes/
H A Dpbes2.c1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
21 { "1.2.840.113549.2.12", "sha512-224" },
22 { "1.2.840.113549.2.13", "sha512-256" },
40 …{ &s_pbes2_default_types[0], "1.3.14.3.2.7" }, /* http://www.oid-info.com/get/1.3.14.3…
41 …{ &s_pbes2_default_types[1], "1.2.840.113549.3.2" }, /* http://www.oid-info.com/get/1.2.840.…
42 …s[2], "1.2.840.113549.3.7" }, /* http://www.oid-info.com/get/1.2.840.113549.3.7 des-EDE…
43 …es[3], "2.16.840.1.101.3.4.1.2" }, /* http://www.oid-info.com/get/2.16.840.1.101.3.4.1.2 aes128
44 …es[4], "2.16.840.1.101.3.4.1.22" }, /* http://www.oid-info.com/get/2.16.840.1.101.3.4.1.22 aes192
45 …es[5], "2.16.840.1.101.3.4.1.42" }, /* http://www.oid-info.com/get/2.16.840.1.101.3.4.1.42 aes256
[all …]
/optee_os/core/arch/arm/dts/
H A Dstm32mp15-pinctrl.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
6 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
9 adc1_in6_pins_a: adc1-in6-0 {
15 adc12_ain_pins_a: adc12-ain-0 {
24 adc12_ain_pins_b: adc12-ain-1 {
31 adc12_usb_cc_pins_a: adc12-usb-cc-pins-0 {
38 cec_pins_a: cec-0 {
41 bias-disable;
42 drive-open-drain;
[all …]
/optee_os/lib/libutils/isoc/include/
H A Dinttypes.h1 /* SPDX-License-Identifier: BSD-2-Clause */
18 #define PRId8 "d"
19 #define PRId16 "d"
20 #define PRId32 "d"
21 #define PRId64 __PRI64_PREFIX "d"
22 #define PRIdPTR __PRIPTR_PREFIX "d"
/optee_os/core/arch/arm/plat-sunxi/
H A Dpsci.c1 // SPDX-License-Identifier: BSD-2-Clause
92 DMSG("set entry address for CPU %d", core_idx); in psci_cpu_on()
96 DMSG("assert reset on target CPU %d", core_idx); in psci_cpu_on()
100 DMSG("invalidate L1 cache for CPU %d", core_idx); in psci_cpu_on()
104 DMSG("lock CPU %d", core_idx); in psci_cpu_on()
108 DMSG("release clamp for CPU %d", core_idx); in psci_cpu_on()
117 DMSG("clear power gating for CPU %d", core_idx); in psci_cpu_on()
121 /* de-assert reset on target CPU */ in psci_cpu_on()
122 DMSG("de-assert reset on target CPU %d", core_idx); in psci_cpu_on()
126 DMSG("unlock CPU %d", core_idx); in psci_cpu_on()
[all …]

12345678910>>...16