Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 46) sorted by relevance

12

/optee_os-3.20.0/core/lib/zlib/
A Dinffast.c96 bits = state->bits;
105 if (bits < 15) {
107 bits += 8;
109 bits += 8;
115 bits -= op;
138 bits += 8;
140 bits += 8;
146 bits -= op;
294 len = bits >> 3;
296 bits -= len << 3;
[all …]
A Dinflate.c251 int bits;
263 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
266 state->bits += (uInt)bits;
485 bits = state->bits; \
496 state->bits = bits; \
539 bits -= bits & 7; \
1074 if ((unsigned)(here.bits) <= bits) break;
1082 if ((unsigned)(last.bits + here.bits) <= bits) break;
1126 if ((unsigned)(here.bits) <= bits) break;
1134 if ((unsigned)(last.bits + here.bits) <= bits) break;
[all …]
A Dinftrees.c33 int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) in inflate_table() argument
38 unsigned FAR *bits;
114 root = *bits;
120 here.bits = (unsigned char)1;
124 *bits = 1;
217 here.bits = (unsigned char)(len - drop);
286 (*table)[low].bits = (unsigned char)root;
296 here.bits = (unsigned char)(len - drop);
303 *bits = root;
A Dinftrees.h27 unsigned char bits; /* bits in this part of the code */ member
63 unsigned FAR *bits, unsigned short FAR *work));
A Dinflate.h104 unsigned bits; /* number of bits in "in" */ member
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Drand_bn.c10 int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng) in rand_bn_bits() argument
16 LTC_ARGCHK(bits > 1); in rand_bn_bits()
21 bytes = (bits+7) >> 3; in rand_bn_bits()
22 mask = 0xff >> (bits % 8 == 0 ? 0 : 8 - bits % 8); in rand_bn_bits()
52 int res, bits; in rand_bn_upto() local
57 bits = mp_count_bits(limit); in rand_bn_upto()
59 res = rand_bn_bits(N, bits, prng, wprng); in rand_bn_upto()
/optee_os-3.20.0/core/lib/libtomcrypt/src/prngs/
A Drng_make_prng.c24 int rng_make_prng(int bits, int wprng, prng_state *prng, in rng_make_prng() argument
38 if (bits == -1) { in rng_make_prng()
40 } else if (bits < 64 || bits > 1024) { in rng_make_prng()
43 bytes = (unsigned long)((bits+7)/8) * 2; in rng_make_prng()
60 if (bits == -1) { in rng_make_prng()
A Drng_get_bytes.c60 int l, acc, bits, a, b; in s_rng_ansic() local
63 bits = 8; in s_rng_ansic()
67 while (bits--) { in s_rng_ansic()
76 bits = 8; in s_rng_ansic()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dtee_time_arm_cntpct.c54 static uint8_t first, bits; in REGISTER_TIME_SOURCE() local
65 bits += 2; in REGISTER_TIME_SOURCE()
66 if (bits >= 8) { in REGISTER_TIME_SOURCE()
67 bits = 0; in REGISTER_TIME_SOURCE()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dasn1write.c309 size_t bits ) in mbedtls_asn1_write_named_bitstring() argument
316 byte_len = ( bits + 7 ) / 8; in mbedtls_asn1_write_named_bitstring()
317 unused_bits = ( byte_len * 8 ) - bits; in mbedtls_asn1_write_named_bitstring()
324 if( bits != 0 ) in mbedtls_asn1_write_named_bitstring()
337 bits--; in mbedtls_asn1_write_named_bitstring()
338 if( bits == 0 ) in mbedtls_asn1_write_named_bitstring()
341 if( bits % 8 == 0 ) in mbedtls_asn1_write_named_bitstring()
346 return( mbedtls_asn1_write_bitstring( p, start, buf, bits ) ); in mbedtls_asn1_write_named_bitstring()
350 const unsigned char *buf, size_t bits ) in mbedtls_asn1_write_bitstring() argument
356 byte_len = ( bits + 7 ) / 8; in mbedtls_asn1_write_bitstring()
[all …]
A Decp_invasive.h47 void mbedtls_ecp_fix_negative( mbedtls_mpi *N, signed char c, size_t bits );
A Daesni.c449 size_t bits ) in mbedtls_aesni_setkey_enc() argument
451 switch( bits ) in mbedtls_aesni_setkey_enc()
/optee_os-3.20.0/core/arch/arm/plat-rockchip/
A Dcommon.h24 #define BITS_WITH_WMASK(bits, msk, shift) \ argument
25 (SHIFT_U32(bits, shift) | BITS_WMSK(msk, shift))
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/
A Drc2.c63 int rc2_setup_ex(const unsigned char *key, int keylen, int bits, int num_rounds, symmetric_key *ske… in rc2_setup_ex() argument
73 if (keylen == 0 || keylen > 128 || bits > 1024) { in rc2_setup_ex()
76 if (bits == 0) { in rc2_setup_ex()
77 bits = 1024; in rc2_setup_ex()
96 T8 = (unsigned)(bits+7)>>3; in rc2_setup_ex()
97 TM = (255 >> (unsigned)(7 & -bits)); in rc2_setup_ex()
298 int keylen, bits; in rc2_test()
351 if (tests[x].bits == (tests[x].keylen * 8)) { in rc2_test()
357 … if ((err = rc2_setup_ex(tests[x].key, tests[x].keylen, tests[x].bits, 0, &skey)) != CRYPT_OK) { in rc2_test()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dpsa_util.h167 psa_ecc_family_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
173 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
208 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
231 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
374 uint16_t tls_ecc_grp_reg_id, size_t *bits ) in mbedtls_psa_parse_tls_ecc_group() argument
381 mbedtls_ecc_group_to_psa( curve_info->grp_id, bits ) ) ); in mbedtls_psa_parse_tls_ecc_group()
A Decdsa.h59 #define MBEDTLS_ECDSA_MAX_SIG_LEN( bits ) \ argument
60 ( /*T,L of SEQUENCE*/ ( ( bits ) >= 61 * 8 ? 3 : 2 ) + \
61 /*T,L of r,s*/ 2 * ( ( ( bits ) >= 127 * 8 ? 3 : 2 ) + \
62 /*V of r,s*/ ( ( bits ) + 8 ) / 8 ) )
A Dasn1write.h299 const unsigned char *buf, size_t bits );
321 size_t bits );
A Daesni.h128 size_t bits );
/optee_os-3.20.0/mk/
A Dgcc.mk16 libgcc$(sm) := $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
18 libstdc++$(sm) := $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
20 libgcc_eh$(sm) := $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
/optee_os-3.20.0/core/drivers/crypto/versal/
A Decc.c84 static TEE_Result ecc_get_key_size(uint32_t curve, size_t *bytes, size_t *bits) in ecc_get_key_size() argument
88 *bits = 384; in ecc_get_key_size()
92 *bits = 521; in ecc_get_key_size()
111 size_t bits = 0; in crypto_bignum_bn2bin_eswap() local
113 if (ecc_get_key_size(curve, &bytes, &bits)) in crypto_bignum_bn2bin_eswap()
178 size_t bits = 0; in verify() local
180 ret = ecc_get_key_size(key->curve, &bytes, &bits); in verify()
254 size_t bits = 0; in sign() local
256 ret = ecc_get_key_size(key->curve, &bytes, &bits); in sign()
272 TEE_TYPE_ECDSA_KEYPAIR, bits); in sign()
[all …]
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Decc.c26 static bool oefid_key_supported(size_t bits) in oefid_key_supported() argument
30 return bits >= 224; in oefid_key_supported()
137 size_t *bytes, size_t *bits) in ecc_get_key_size() argument
145 *bits = 192; in ecc_get_key_size()
152 *bits = 224; in ecc_get_key_size()
159 *bits = 256; in ecc_get_key_size()
166 *bits = 384; in ecc_get_key_size()
173 *bits = 521; in ecc_get_key_size()
183 if (!oefid_key_supported(*bits)) in ecc_get_key_size()
655 size_t bits = 0; in gen_keypair() local
[all …]
/optee_os-3.20.0/ldelf/
A Dldelf.mk24 arch-bits-$(sm) := $(arch-bits-core)
/optee_os-3.20.0/core/arch/riscv/
A Driscv.mk3 arch-bits-core := 64
5 arch-bits-core := 32
7 CROSS_COMPILE_core := $(CROSS_COMPILE$(arch-bits-core))
141 arch-bits-ta_rv32 := 32
177 arch-bits-ta_rv64 := 64
211 $(foreach sm, $(ta-targets), $(eval CROSS_COMPILE_$(sm) ?= $(CROSS_COMPILE$(arch-bits-$(sm)))))
/optee_os-3.20.0/core/drivers/crypto/stm32/
A Dstm32_cryp.c173 #define CLRBITS(v, bits) ((v) &= ~(bits)) argument
174 #define SETBITS(v, bits) ((v) |= (bits)) argument
193 static void clrsetbits(uint32_t *v, uint32_t mask, uint32_t bits) in clrsetbits() argument
195 *v = (*v & ~mask) | bits; in clrsetbits()
231 static TEE_Result wait_sr_bits(vaddr_t base, uint32_t bits) in wait_sr_bits() argument
235 while ((io_read32(base + _CRYP_SR) & bits) != bits) in wait_sr_bits()
239 if ((io_read32(base + _CRYP_SR) & bits) != bits) in wait_sr_bits()
/optee_os-3.20.0/ta/mk/
A Dbuild-user-ta.mk13 arch-bits-$(sm) := 32
16 arch-bits-$(sm) := 64

Completed in 29 milliseconds

12