Home
last modified time | relevance | path

Searched refs:decode (Results 1 – 10 of 10) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_decrypt_key.c31 ltc_asn1_list decode[3]; in ecc_decrypt_key() local
44 LTC_SET_ASN1(decode, 0, LTC_ASN1_OBJECT_IDENTIFIER, hashOID, sizeof(hashOID)/sizeof(hashOID[0])); in ecc_decrypt_key()
45 err = der_decode_sequence(in, inlen, decode, 1); in ecc_decrypt_key()
50 hash = find_hash_oid(hashOID, decode[0].size); in ecc_decrypt_key()
73 LTC_SET_ASN1(decode, 1, LTC_ASN1_OCTET_STRING, pub_expt, ECC_BUF_SIZE); in ecc_decrypt_key()
74 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in ecc_decrypt_key()
77 if ((err = der_decode_sequence(in, inlen, decode, 3)) != CRYPT_OK) { in ecc_decrypt_key()
83 …if ((err = ecc_set_key(decode[1].data, decode[1].size, PK_PUBLIC, &pubkey)) != CRYPT_OK) { goto LB… in ecc_decrypt_key()
99 if (decode[2].size > y) { in ecc_decrypt_key()
105 if (*outlen < decode[2].size) { in ecc_decrypt_key()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
H A Ddsa_decrypt_key.c30 ltc_asn1_list decode[3]; in dsa_decrypt_key() local
43 LTC_SET_ASN1(decode, 0, LTC_ASN1_OBJECT_IDENTIFIER, hashOID, sizeof(hashOID)/sizeof(hashOID[0])); in dsa_decrypt_key()
44 err = der_decode_sequence(in, inlen, decode, 1); in dsa_decrypt_key()
49 hash = find_hash_oid(hashOID, decode[0].size); in dsa_decrypt_key()
74 LTC_SET_ASN1(decode, 1, LTC_ASN1_INTEGER, g_pub, 1UL); in dsa_decrypt_key()
75 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in dsa_decrypt_key()
78 if ((err = der_decode_sequence(in, inlen, decode, 3)) != CRYPT_OK) { in dsa_decrypt_key()
95 if (decode[2].size > y) { in dsa_decrypt_key()
101 if (*outlen < decode[2].size) { in dsa_decrypt_key()
102 *outlen = decode[2].size; in dsa_decrypt_key()
[all …]
/optee_os/core/lib/qcbor/
H A DREADME.md31 context is 176 bytes, decode context is 312 bytes and the
34 encoded CBOR and encode/decode contexts so caller has full control
38 **Easy decoding of maps** – The "spiffy decode" functions allow
71 These are functions to decode particular data types. They are an
75 Spiffy decode supports easier map and array decoding. A map can be
80 An internal error state is maintained. This simplifies the decode
82 decode, rather than on every function.
106 The spiffy decode functions will handle definite and indefinite length
136 decode function. In many cases the error check is only needed as the
137 last step or an encode or decode. TinyCBOR requires an error check on
[all …]
/optee_os/scripts/
H A Dftrace_format.py72 print(s[:magic].rstrip(b'\x00').decode())
H A Dupdate_changelog.py51 return output.decode("utf-8")
H A Dprint_tee_hash.py18 print(codecs.encode(buf, 'hex').decode('utf-8'))
H A Dgen_compile_commands.py129 for obj in subprocess.check_output([ar, '-t', archive]).decode().split():
H A Dts_bin_to_c.py59 name = obj.name.decode()
H A Dsign_encrypt.py52 return name_img.decode().split('\x00', 1)[0]
617 .format(binascii.hexlify(nonce).decode('ascii')))
625 .format(binascii.hexlify(tag).decode('ascii')))
696 .format(binascii.hexlify(img_digest).decode('ascii')))
H A Dgen_tee_bin.py69 name = obj.name.decode()