Searched refs:decode (Results 1 – 10 of 10) sorted by relevance
| /optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
| H A D | ecc_decrypt_key.c | 31 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 D | dsa_decrypt_key.c | 30 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 D | README.md | 31 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 D | ftrace_format.py | 72 print(s[:magic].rstrip(b'\x00').decode())
|
| H A D | update_changelog.py | 51 return output.decode("utf-8")
|
| H A D | print_tee_hash.py | 18 print(codecs.encode(buf, 'hex').decode('utf-8'))
|
| H A D | gen_compile_commands.py | 129 for obj in subprocess.check_output([ar, '-t', archive]).decode().split():
|
| H A D | ts_bin_to_c.py | 59 name = obj.name.decode()
|
| H A D | sign_encrypt.py | 52 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 D | gen_tee_bin.py | 69 name = obj.name.decode()
|