Home
last modified time | relevance | path

Searched refs:tmpbuf (Results 1 – 8 of 8) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_verify_hash.c35 unsigned char *tmpbuf; in rsa_verify_hash_ex() local
72 tmpbuf = XMALLOC(siglen); in rsa_verify_hash_ex()
73 if (tmpbuf == NULL) { in rsa_verify_hash_ex()
79 if ((err = ltc_mp.rsa_me(sig, siglen, tmpbuf, &x, PK_PUBLIC, key)) != CRYPT_OK) { in rsa_verify_hash_ex()
80 XFREE(tmpbuf); in rsa_verify_hash_ex()
86 XFREE(tmpbuf); in rsa_verify_hash_ex()
95 … err = pkcs_1_pss_decode(hash, hashlen, tmpbuf+1, x-1, saltlen, hash_idx, modulus_bitlen, stat); in rsa_verify_hash_ex()
98 err = pkcs_1_pss_decode(hash, hashlen, tmpbuf, x, saltlen, hash_idx, modulus_bitlen, stat); in rsa_verify_hash_ex()
147 … LTC_SET_ASN1(siginfo, 1, LTC_ASN1_OCTET_STRING, tmpbuf, siglen); in rsa_verify_hash_ex()
191 zeromem(tmpbuf, siglen); in rsa_verify_hash_ex()
[all …]
A Drsa_import.c88 unsigned char *tmpbuf=NULL; in rsa_import() local
102 tmpbuf = XCALLOC(1, tmpbuf_len); in rsa_import()
103 if (tmpbuf == NULL) { in rsa_import()
110 LTC_OID_RSA, tmpbuf, &tmpbuf_len, in rsa_import()
116 if ((err = der_decode_sequence_multi(tmpbuf, tmpbuf_len, in rsa_import()
136 if (tmpbuf != NULL) { in rsa_import()
137 XFREE(tmpbuf); in rsa_import()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_public_key_from_certificate.c38 unsigned char *tmpbuf; in x509_decode_public_key_from_certificate() local
47 tmpbuf = XCALLOC(1, tmpbuf_len); in x509_decode_public_key_from_certificate()
48 if (tmpbuf == NULL) { in x509_decode_public_key_from_certificate()
88 algorithm, tmpbuf, &tmpbuf_len, in x509_decode_public_key_from_certificate()
91 err = callback(tmpbuf, tmpbuf_len, ctx); in x509_decode_public_key_from_certificate()
104 if (tmpbuf != NULL) XFREE(tmpbuf); in x509_decode_public_key_from_certificate()
A Dx509_decode_subject_public_key_info.c41 unsigned char *tmpbuf; in x509_decode_subject_public_key_info() local
66 tmpbuf = XCALLOC(1, inlen); in x509_decode_subject_public_key_info()
67 if (tmpbuf == NULL) { in x509_decode_subject_public_key_info()
85 LTC_SET_ASN1(subject_pubkey, 1, LTC_ASN1_RAW_BIT_STRING, tmpbuf, inlen*8U); in x509_decode_subject_public_key_info()
114 XFREE(tmpbuf); in x509_decode_subject_public_key_info()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_import.c23 unsigned char* tmpbuf = NULL; in dsa_import() local
93 tmpbuf = XCALLOC(1, tmpbuf_len); in dsa_import()
94 if (tmpbuf == NULL) { in dsa_import()
101 tmpbuf, &tmpbuf_len, in dsa_import()
104 XFREE(tmpbuf); in dsa_import()
108 if ((err=der_decode_integer(tmpbuf, tmpbuf_len, key->y)) != CRYPT_OK) { in dsa_import()
109 XFREE(tmpbuf); in dsa_import()
113 XFREE(tmpbuf); in dsa_import()
/optee_os-3.20.0/core/drivers/
A Dzynqmp_pm.c106 uint8_t *tmpbuf = NULL; in efuse_op() local
125 tmpbuf = alloc_cache_aligned(buf_sz); in efuse_op()
126 if (!tmpbuf) { in efuse_op()
133 memcpy(tmpbuf, buf, buf_sz); in efuse_op()
137 efuse_op->src = virt_to_phys(tmpbuf); in efuse_op()
141 cache_operation(TEE_CACHECLEAN, tmpbuf, buf_sz); in efuse_op()
158 res = cache_operation(TEE_CACHEINVALIDATE, tmpbuf, buf_sz); in efuse_op()
161 memcpy(buf, tmpbuf, buf_sz); in efuse_op()
167 free(tmpbuf); in efuse_op()
/optee_os-3.20.0/core/kernel/
A Dembedded_ts.c142 uint8_t *tmpbuf = NULL; in read_compressed() local
157 tmpbuf = malloc(strm->avail_out); in read_compressed()
158 if (!tmpbuf) { in read_compressed()
162 strm->next_out = tmpbuf; in read_compressed()
185 strm->next_out = tmpbuf; in read_compressed()
197 free(tmpbuf); in read_compressed()
/optee_os-3.20.0/core/crypto/
A Dsm3.c288 uint8_t tmpbuf[32]; in sm3_hmac_final() local
290 sm3_final(ctx, tmpbuf); in sm3_hmac_final()
293 sm3_update(ctx, tmpbuf, 32); in sm3_hmac_final()
296 memzero_explicit(tmpbuf, sizeof(tmpbuf)); in sm3_hmac_final()

Completed in 7 milliseconds