Home
last modified time | relevance | path

Searched refs:num (Results 1 – 24 of 24) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/integer/
A Dder_encode_integer.c26 LTC_ARGCHK(num != NULL); in der_encode_integer()
31 if ((err = der_length_integer(num, &tmplen)) != CRYPT_OK) { in der_encode_integer()
40 if (mp_cmp_d(num, 0) != LTC_MP_LT) { in der_encode_integer()
42 if ((mp_count_bits(num) & 7) == 0 || mp_iszero(num) == LTC_MP_YES) { in der_encode_integer()
49 y = mp_unsigned_bin_size(num) + leading_zero; in der_encode_integer()
52 y = mp_count_bits(num); in der_encode_integer()
55 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) --y; in der_encode_integer()
72 if (mp_cmp_d(num, 0) == LTC_MP_GT) { in der_encode_integer()
77 } else if (mp_iszero(num) != LTC_MP_YES) { in der_encode_integer()
86 y = mp_count_bits(num); in der_encode_integer()
[all …]
A Dder_length_integer.c18 int der_length_integer(void *num, unsigned long *outlen) in der_length_integer() argument
23 LTC_ARGCHK(num != NULL); in der_length_integer()
26 if (mp_cmp_d(num, 0) != LTC_MP_LT) { in der_length_integer()
30 if ((mp_count_bits(num) & 7) == 0 || mp_iszero(num) == LTC_MP_YES) { in der_length_integer()
37 len = leading_zero + mp_unsigned_bin_size(num); in der_length_integer()
41 z = mp_count_bits(num); in der_length_integer()
43 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) --z; in der_length_integer()
A Dder_decode_integer.c20 int der_decode_integer(const unsigned char *in, unsigned long inlen, void *num) in der_decode_integer() argument
25 LTC_ARGCHK(num != NULL); in der_decode_integer()
46 if ((err = mp_read_unsigned_bin(num, (unsigned char *)in + x, y)) != CRYPT_OK) { in der_decode_integer()
57 if (mp_2expt(tmp, mp_count_bits(num)) != CRYPT_OK || mp_sub(num, tmp, num) != CRYPT_OK) { in der_decode_integer()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/short_integer/
A Dder_encode_short_integer.c20 int der_encode_short_integer(unsigned long num, unsigned char *out, unsigned long *outlen) in der_encode_short_integer() argument
29 num &= 0xFFFFFFFFUL; in der_encode_short_integer()
32 if ((err = der_length_short_integer(num, &len)) != CRYPT_OK) { in der_encode_short_integer()
43 y = num; in der_encode_short_integer()
55 z += (num&(1UL<<((z<<3) - 1))) ? 1 : 0; in der_encode_short_integer()
59 num <<= 8; in der_encode_short_integer()
75 out[x++] = (unsigned char)((num >> 24) & 0xFF); in der_encode_short_integer()
76 num <<= 8; in der_encode_short_integer()
A Dder_length_short_integer.c18 int der_length_short_integer(unsigned long num, unsigned long *outlen) in der_length_short_integer() argument
26 num &= 0xFFFFFFFFUL; in der_length_short_integer()
30 y = num; in der_length_short_integer()
39 } else if ((num&(1UL<<((z<<3) - 1))) != 0) { in der_length_short_integer()
A Dder_decode_short_integer.c20 int der_decode_short_integer(const unsigned char *in, unsigned long inlen, unsigned long *num) in der_decode_short_integer() argument
24 LTC_ARGCHK(num != NULL); in der_decode_short_integer()
54 *num = y; in der_decode_short_integer()
/optee_os-3.20.0/core/arch/arm/tee/
A Darch_svc.c147 static void trace_syscall(size_t num) in trace_syscall() argument
149 if (num == TEE_SCN_RETURN || num == TEE_SCN_LOG || num > TEE_SCN_MAX) in trace_syscall()
151 FMSG("syscall #%zu (%s)", num, tee_svc_syscall_table[num].name); in trace_syscall()
154 static void trace_syscall(size_t num __unused) in trace_syscall()
160 static void __noprof ftrace_syscall_enter(size_t num) in ftrace_syscall_enter() argument
170 if (num == TEE_SCN_OPEN_TA_SESSION || num == TEE_SCN_CLOSE_TA_SESSION || in ftrace_syscall_enter()
171 num == TEE_SCN_INVOKE_TA_COMMAND) in ftrace_syscall_enter()
234 static syscall_t get_tee_syscall_func(size_t num) in get_tee_syscall_func() argument
242 if (num > TEE_SCN_MAX) in get_tee_syscall_func()
280 static syscall_t get_ldelf_syscall_func(size_t num) in get_ldelf_syscall_func() argument
[all …]
/optee_os-3.20.0/core/include/dt-bindings/interrupt-controller/
A Darm-gic.h21 #define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1) argument
/optee_os-3.20.0/core/drivers/clk/sam/
A Dat91_pmc.c189 uint8_t num = 0; in pmc_suspend() local
210 num = registered_pcks[i] - 1; in pmc_suspend()
211 pmc_cache.pckr[num] = io_read32(pmc_base + AT91_PMC_PCKR(num)); in pmc_suspend()
227 uint8_t num = 0; in pmc_resume() local
253 num = registered_pcks[i] - 1; in pmc_resume()
254 io_write32(pmc_base + AT91_PMC_PCKR(num), pmc_cache.pckr[num]); in pmc_resume()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/hkdf/
A Dhkdf_test.c36 int num; in hkdf_test()
268 …pare_testvector(OKM, cases[i].OKM_l, cases[i].OKM, (size_t)cases[i].OKM_l, "HKDF", cases[i].num)) { in hkdf_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/hmac/
A Dhmac_test.c137 const char *num; in hmac_test()
597 printf("HMAC-%s test %s, %s\n", cases[i].algo, cases[i].num, error_to_string(err)); in hmac_test()
602 …ector(digest, outlen, cases[i].digest, (size_t)hash_descriptor[hash]->hashsize, cases[i].num, i)) { in hmac_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dsha3.c250 int sha3_shake_init(hash_state *md, int num) in sha3_shake_init() argument
253 if (num != 128 && num != 256) return CRYPT_INVALID_ARG; in sha3_shake_init()
255 md->sha3.capacity_words = (unsigned short)(2 * num / (8 * sizeof(ulong64))); in sha3_shake_init()
364 int sha3_shake_memory(int num, const unsigned char *in, unsigned long inlen, unsigned char *out, co… in sha3_shake_memory() argument
371 if ((err = sha3_shake_init(&md, num)) != CRYPT_OK) return err; in sha3_shake_memory()
/optee_os-3.20.0/core/include/drivers/
A Dversal_nvm.h115 uint32_t num; member
124 uint32_t num; member
228 uint32_t first, size_t num);
234 uint32_t first, size_t num);
/optee_os-3.20.0/core/drivers/
A Dversal_nvm.c255 uint32_t first, size_t num) in versal_efuse_read_user_data() argument
259 .num = num, in versal_efuse_read_user_data()
266 if (first + num > EFUSE_MAX_USER_FUSES || len < num * sizeof(uint32_t)) in versal_efuse_read_user_data()
285 memcpy(buf, rsp, num * sizeof(uint32_t)); in versal_efuse_read_user_data()
363 uint32_t first, size_t num) in versal_efuse_write_user_data() argument
369 .num = num, in versal_efuse_write_user_data()
378 if (first + num > EFUSE_MAX_USER_FUSES || len < num * sizeof(uint32_t)) in versal_efuse_write_user_data()
391 for (i = 0; i < cfg.num; i++) in versal_efuse_write_user_data()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
A Dtweetnacl.c417 gf t, chk, num, den, den2, den4, den6; in unpackneg() local
420 S(num,r[1]); in unpackneg()
421 M(den,num,D); in unpackneg()
422 Z(num,num,r[2]); in unpackneg()
428 M(t,den6,num); in unpackneg()
432 M(t,t,num); in unpackneg()
439 if (neq25519(chk, num)) M(r[0],r[0],I); in unpackneg()
443 if (neq25519(chk, num)) return -1; in unpackneg()
/optee_os-3.20.0/core/arch/arm/include/
A Darm32.h93 #define DACR_DOMAIN(num, perm) SHIFT_U32((perm), ((num) * 2)) argument
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pk.h673 int der_encode_integer(void *num, unsigned char *out, unsigned long *outlen);
674 int der_decode_integer(const unsigned char *in, unsigned long inlen, void *num);
675 int der_length_integer(void *num, unsigned long *outlen);
678 int der_decode_short_integer(const unsigned char *in, unsigned long inlen, unsigned long *num);
679 int der_encode_short_integer(unsigned long num, unsigned char *out, unsigned long *outlen);
680 int der_length_short_integer(unsigned long num, unsigned long *outlen);
A Dtomcrypt_hash.h281 int sha3_shake_init(hash_state *md, int num);
285 int sha3_shake_memory(int num, const unsigned char *in, unsigned long inlen, unsigned char *out, co…
/optee_os-3.20.0/core/arch/arm/dts/
A Dfsl-lx2160a.dtsi673 spi-num-chipselects = <5>;
674 bus-num = <0>;
686 spi-num-chipselects = <5>;
687 bus-num = <1>;
700 bus-num = <2>;
965 num-ob-windows = <256>;
1002 num-ob-windows = <256>;
1039 num-ob-windows = <256>;
1077 num-ob-windows = <256>;
1114 num-ob-windows = <256>;
[all …]
A Dstm32mp15xx-dhcom-pdk2.dtsi240 dai-tdm-slot-num = <2>;
258 dai-tdm-slot-num = <2>;
A Dstm32mp15xx-dkx.dtsi519 dai-tdm-slot-num = <2>;
537 dai-tdm-slot-num = <2>;
A Dat91-sama5d27_som1_ek.dts40 num-ports = <3>;
A Dat91-sama5d2_xplained.dts49 num-ports = <3>;
/optee_os-3.20.0/core/tee/
A Dfs_htree.c29 #define BLOCK_NUM_TO_NODE_ID(num) ((num) + 1) argument

Completed in 41 milliseconds