Home
last modified time | relevance | path

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

123

/optee_os/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.c250 int bits;
262 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
265 state->bits += (uInt)bits;
484 bits = state->bits; \
495 state->bits = bits; \
538 bits -= bits & 7; \
1064 if ((unsigned)(here.bits) <= bits) break;
1072 if ((unsigned)(last.bits + here.bits) <= bits) break;
1116 if ((unsigned)(here.bits) <= bits) break;
1124 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));
/optee_os/core/lib/libtomcrypt/src/math/
A Drand_bn.c17 int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng) in rand_bn_bits() argument
23 LTC_ARGCHK(bits > 1); in rand_bn_bits()
28 bytes = (bits+7) >> 3; in rand_bn_bits()
29 mask = 0xff << (8 - bits % 8); in rand_bn_bits()
59 int res, bits; in rand_bn_upto() local
64 bits = mp_count_bits(limit); in rand_bn_upto()
66 res = rand_bn_bits(N, bits, prng, wprng); in rand_bn_upto()
/optee_os/core/lib/libtomcrypt/src/prngs/
A Drng_make_prng.c31 int rng_make_prng(int bits, int wprng, prng_state *prng, in rng_make_prng() argument
45 if (bits == -1) { in rng_make_prng()
47 } else if (bits < 64 || bits > 1024) { in rng_make_prng()
50 bytes = (unsigned long)((bits+7)/8) * 2; in rng_make_prng()
67 if (bits == -1) { in rng_make_prng()
A Drng_get_bytes.c67 int l, acc, bits, a, b; in _rng_ansic() local
70 bits = 8; in _rng_ansic()
74 while (bits--) { in _rng_ansic()
83 bits = 8; in _rng_ansic()
/optee_os/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/lib/libmbedtls/mbedtls/library/
A Dasn1write.c304 size_t bits ) in mbedtls_asn1_write_named_bitstring() argument
311 byte_len = ( bits + 7 ) / 8; in mbedtls_asn1_write_named_bitstring()
312 unused_bits = ( byte_len * 8 ) - bits; in mbedtls_asn1_write_named_bitstring()
319 if( bits != 0 ) in mbedtls_asn1_write_named_bitstring()
332 bits--; in mbedtls_asn1_write_named_bitstring()
333 if( bits == 0 ) in mbedtls_asn1_write_named_bitstring()
336 if( bits % 8 == 0 ) in mbedtls_asn1_write_named_bitstring()
341 return( mbedtls_asn1_write_bitstring( p, start, buf, bits ) ); in mbedtls_asn1_write_named_bitstring()
345 const unsigned char *buf, size_t bits ) in mbedtls_asn1_write_bitstring() argument
351 byte_len = ( bits + 7 ) / 8; in mbedtls_asn1_write_bitstring()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/
A Drc2.c70 int rc2_setup_ex(const unsigned char *key, int keylen, int bits, int num_rounds, symmetric_key *ske… in rc2_setup_ex() argument
80 if (keylen == 0 || keylen > 128 || bits > 1024) { in rc2_setup_ex()
83 if (bits == 0) { in rc2_setup_ex()
84 bits = 1024; in rc2_setup_ex()
103 T8 = (unsigned)(bits+7)>>3; in rc2_setup_ex()
104 TM = (255 >> (unsigned)(7 & -bits)); in rc2_setup_ex()
305 int keylen, bits; in rc2_test()
358 if (tests[x].bits == (tests[x].keylen * 8)) { in rc2_test()
364 … if ((err = rc2_setup_ex(tests[x].key, tests[x].keylen, tests[x].bits, 0, &skey)) != CRYPT_OK) { in rc2_test()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dpsa_util.h164 psa_ecc_family_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
170 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
205 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
228 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
371 uint16_t tls_ecc_grp_reg_id, size_t *bits ) in mbedtls_psa_parse_tls_ecc_group() argument
378 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 ) )
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dpsa_util.h164 psa_ecc_family_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
170 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
205 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
228 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
371 uint16_t tls_ecc_grp_reg_id, size_t *bits ) in mbedtls_psa_parse_tls_ecc_group() argument
378 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 ) )
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dpsa_util.h164 psa_ecc_family_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
170 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
205 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
228 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
371 uint16_t tls_ecc_grp_reg_id, size_t *bits ) in mbedtls_psa_parse_tls_ecc_group() argument
378 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 ) )
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dpsa_util.h164 psa_ecc_family_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
170 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
205 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
228 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
371 uint16_t tls_ecc_grp_reg_id, size_t *bits ) in mbedtls_psa_parse_tls_ecc_group() argument
378 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 ) )
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dpsa_util.h164 psa_ecc_family_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
170 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
205 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
228 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id()
371 uint16_t tls_ecc_grp_reg_id, size_t *bits ) in mbedtls_psa_parse_tls_ecc_group() argument
378 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 ) )
/optee_os/out/arm/export-ta_arm32/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/out/arm/export-ta_arm64/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/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/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/core/drivers/crypto/se050/core/
A Decc.c101 size_t *bytes, size_t *bits) in ecc_get_key_size() argument
109 *bits = 192; in ecc_get_key_size()
116 *bits = 224; in ecc_get_key_size()
123 *bits = 256; in ecc_get_key_size()
130 *bits = 384; in ecc_get_key_size()
137 *bits = 521; in ecc_get_key_size()
545 size_t bits = 0; in gen_keypair() local
547 ret = ecc_get_key_size(key->curve, 0, &bytes, &bits); in gen_keypair()
567 st = sss_se05x_key_store_generate_key(se050_kstore, &k_object, bits, in gen_keypair()

Completed in 40 milliseconds

123