Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/prngs/
A Drng_make_prng.c28 unsigned long bytes; in rng_make_prng() local
39 bytes = prng_descriptor[wprng]->export_size; in rng_make_prng()
43 bytes = (unsigned long)((bits+7)/8) * 2; in rng_make_prng()
50 buf = XMALLOC(bytes); in rng_make_prng()
55 if (rng_get_bytes(buf, bytes, callback) != bytes) { in rng_make_prng()
61 if ((err = prng_descriptor[wprng]->pimport(buf, bytes, prng)) != CRYPT_OK) { in rng_make_prng()
65 if ((err = prng_descriptor[wprng]->add_entropy(buf, bytes, prng)) != CRYPT_OK) { in rng_make_prng()
75 zeromem(buf, bytes); in rng_make_prng()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Drand_bn.c12 int res, bytes; in rand_bn_bits() local
21 bytes = (bits+7) >> 3; in rand_bn_bits()
25 if ((buf = XCALLOC(1, bytes)) == NULL) return CRYPT_MEM; in rand_bn_bits()
28 if (prng_descriptor[wprng]->read(buf, bytes, prng) != (unsigned long)bytes) { in rand_bn_bits()
35 if ((res = mp_read_unsigned_bin(N, buf, bytes)) != CRYPT_OK) goto cleanup; in rand_bn_bits()
41 zeromem(buf, bytes); in rand_bn_bits()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dtee_time_arm_cntpct.c53 int bytes = 0, n; in REGISTER_TIME_SOURCE() local
59 bytes = 2; in REGISTER_TIME_SOURCE()
68 bytes = 1; in REGISTER_TIME_SOURCE()
71 if (bytes) { in REGISTER_TIME_SOURCE()
72 FMSG("0x%02X", (int)acc & ((1 << (bytes * 8)) - 1)); in REGISTER_TIME_SOURCE()
73 crypto_rng_add_event(sid, pnum, (uint8_t *)&acc, bytes); in REGISTER_TIME_SOURCE()
/optee_os-3.20.0/scripts/
A Dgen_stmm_hex.py31 bytes = inf.read()
32 uncompressed_size = len(bytes)
33 bytes = zlib.compress(bytes)
34 size = len(bytes)
42 outf.write('0x{:02x},'.format(bytes[i]))
A Dbin_to_c.py41 bytes = indata.read()
43 bytes += b'\0'
44 size = len(bytes)
60 if args.text and i != size - 1 and bytes[i] == b'\0':
63 f.write(hex(bytes[i]) + ',')
A Dsign_helper_kms.py45 def sign(self, data: bytes, padding: AsymmetricPadding, argument
48 ) -> bytes:
86 def decrypt(self, ciphertext: bytes, padding: AsymmetricPadding) -> bytes: argument
97 ) -> bytes:
A Dts_bin_to_c.py88 bytes = _ts.read()
89 uncompressed_size = len(bytes)
91 bytes = zlib.compress(bytes)
92 size = len(bytes)
98 f.write(hex(bytes[i]) + ',')
A Dsign_encrypt.py46 h.update(namespace_bytes + bytes(name, 'utf-8'))
48 return UUID(bytes=digest[:16], version=5)
396 cipher = AESGCM(bytes.fromhex(enc_key))
409 self.ta_uuid = uuid.bytes
418 self.ta_uuid = uuid.bytes
454 def int_to_bytes(x: int) -> bytes:
468 self.img = uuid.bytes + shdr_subkey + n_bytes + e_bytes
723 cipher = AESGCM(bytes.fromhex(enc_key))
787 if self.ta_uuid != uuid.bytes:
887 if uuid.UUID(bytes=image.uuid) != next_uuid:
[all …]
/optee_os-3.20.0/core/drivers/crypto/se050/glue/
A Di2c.c15 static TEE_Result (*transfer)(struct rpc_i2c_request *req, size_t *bytes);
27 size_t bytes = 0; in i2c_transfer() local
31 if ((*transfer)(&request, &bytes) == TEE_SUCCESS) in i2c_transfer()
32 return bytes; in i2c_transfer()
A Di2c_imx.c12 size_t *bytes) in native_i2c_transfer() argument
24 *bytes = req->buffer_len; in native_i2c_transfer()
A Di2c_stm32.c18 TEE_Result native_i2c_transfer(struct rpc_i2c_request *req, size_t *bytes) in native_i2c_transfer() argument
30 *bytes = req->buffer_len; in native_i2c_transfer()
/optee_os-3.20.0/core/drivers/crypto/versal/
A Decc.c89 *bytes = 48; in ecc_get_key_size()
93 *bytes = 66; in ecc_get_key_size()
110 size_t bytes = 0; in crypto_bignum_bn2bin_eswap() local
122 memcpy(to, pad, bytes); in crypto_bignum_bn2bin_eswap()
177 size_t bytes = 0; in verify() local
193 versal_mbox_alloc(bytes * 2, NULL, &x); in verify()
196 (uint8_t *)x.buf + bytes); in verify()
253 size_t bytes = 0; in sign() local
285 versal_mbox_alloc(bytes, NULL, &k); in sign()
292 versal_mbox_alloc(bytes, NULL, &d); in sign()
[all …]
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Decc.c137 size_t *bytes, size_t *bits) in ecc_get_key_size() argument
146 *bytes = 24; in ecc_get_key_size()
153 *bytes = 28; in ecc_get_key_size()
160 *bytes = 32; in ecc_get_key_size()
167 *bytes = 48; in ecc_get_key_size()
174 *bytes = 66; in ecc_get_key_size()
654 size_t bytes = 0; in gen_keypair() local
686 bytes = sizeof(kf); in gen_keypair()
688 &bytes); in gen_keypair()
695 crypto_bignum_bin2bn(kf + 1, bytes / 2, key->x); in gen_keypair()
[all …]
/optee_os-3.20.0/core/drivers/crypto/se050/glue/include/
A Di2c_native.h13 size_t *bytes);
/optee_os-3.20.0/core/include/tee/
A Dtadb.h38 size_t pos, uint8_t **data, size_t bytes);
40 size_t *bytes);
A Dfs_htree.h93 size_t *bytes);
/optee_os-3.20.0/core/drivers/
A Dzynqmp_pm.c81 .bytes = ZYNQMP_EFUSE_##__x##_LENGTH, \
86 uint32_t bytes; member
135 efuse_op->size = efuse_tbl[id].bytes / sizeof(uint32_t); in efuse_op()
A Dversal_trng.c192 uint64_t bytes; member
934 trng->stats.bytes += len; in trng_generate()
/optee_os-3.20.0/core/include/kernel/
A Drpc_io_i2c.h36 TEE_Result rpc_io_i2c_transfer(struct rpc_i2c_request *p, size_t *bytes);
/optee_os-3.20.0/core/tee/
A Dtee_svc_storage.c89 size_t bytes; in tee_svc_storage_read_head() local
102 bytes = sizeof(struct tee_svc_storage_head); in tee_svc_storage_read_head()
103 res = fops->read(o->fh, 0, &head, &bytes); in tee_svc_storage_read_head()
119 if (bytes != sizeof(struct tee_svc_storage_head)) { in tee_svc_storage_read_head()
138 bytes = head.attr_size; in tee_svc_storage_read_head()
140 attr, &bytes); in tee_svc_storage_read_head()
143 if (res != TEE_SUCCESS || bytes != head.attr_size) in tee_svc_storage_read_head()
696 size_t bytes = 0; in syscall_storage_obj_read() local
725 bytes = len; in syscall_storage_obj_read()
739 o->info.dataPosition += bytes; in syscall_storage_obj_read()
[all …]
A Dtee_rpmb_fs.c340 *bytes = (uint8_t) (u32 >> 24); in u32_to_bytes()
341 *(bytes + 1) = (uint8_t) (u32 >> 16); in u32_to_bytes()
342 *(bytes + 2) = (uint8_t) (u32 >> 8); in u32_to_bytes()
343 *(bytes + 3) = (uint8_t) u32; in u32_to_bytes()
348 *u32 = (uint32_t) ((*(bytes) << 24) + in bytes_to_u32()
349 (*(bytes + 1) << 16) + in bytes_to_u32()
350 (*(bytes + 2) << 8) + (*(bytes + 3))); in bytes_to_u32()
355 *bytes = (uint8_t) (u16 >> 8); in u16_to_bytes()
356 *(bytes + 1) = (uint8_t) u16; in u16_to_bytes()
361 *u16 = (uint16_t) ((*bytes << 8) + *(bytes + 1)); in bytes_to_u16()
[all …]
A Dfs_htree.c113 size_t bytes; in rpc_read() local
120 res = ht->stor->rpc_read_final(&op, &bytes); in rpc_read()
124 if (bytes != dlen) in rpc_read()
/optee_os-3.20.0/core/pta/tests/
A Dfs_htree.c119 size_t *bytes) in test_read_final() argument
126 *bytes = sz; in test_read_final()
128 *bytes = a->data_len - offs; in test_read_final()
130 *bytes = 0; in test_read_final()
132 memcpy(a->block, a->data + offs, *bytes); in test_read_final()
/optee_os-3.20.0/lib/libutils/isoc/
A Dbget.doc142 function is called with an argument indicating how many bytes of
170 Create a buffer pool of <len> bytes, using the storage starting at
176 Allocate a buffer of <size> bytes. The address of the buffer is
182 Allocate a buffer of <size> bytes and clear it to all zeroes. The
209 specifying the number of bytes (total buffer size, including header
/optee_os-3.20.0/lib/libmbedtls/mbedtls/
A DChangeLog31 the exact configuration: 258 bytes if using mbedtls_ssl_cookie_check(),
32 and possibly up to 571 bytes with a custom cookie check function.
425 size may have been rounded up to a whole number of bytes.
1043 bytes (size of the entropy accumulator).
1095 most 2 bytes.
2134 name larger than 16 bytes had been configured on the server.
2748 mbedtls_pk_parse_key(file)() when the password is > 129 bytes.
3307 to 32 bytes with CBC-based ciphersuites and TLS >= 1.1
4503 than 64 bytes, thanks to Stephane Desneux and gary ng
4564 size of 16384 bytes to be rejected
[all …]

Completed in 34 milliseconds