Home
last modified time | relevance | path

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

/openssl/providers/implementations/asymciphers/
H A Drsa_enc.c184 unsigned char *tbuf; in rsa_encrypt() local
186 if ((tbuf = OPENSSL_malloc(rsasize)) == NULL) in rsa_encrypt()
191 OPENSSL_free(tbuf); in rsa_encrypt()
205 OPENSSL_free(tbuf); in rsa_encrypt()
210 OPENSSL_free(tbuf); in rsa_encrypt()
260 unsigned char *tbuf; in rsa_decrypt() local
262 if ((tbuf = OPENSSL_malloc(len)) == NULL) in rsa_decrypt()
271 OPENSSL_free(tbuf); in rsa_decrypt()
279 OPENSSL_free(tbuf); in rsa_decrypt()
294 OPENSSL_free(tbuf); in rsa_decrypt()
[all …]
/openssl/crypto/rsa/
H A Drsa_pmeth.c51 unsigned char *tbuf; member
116 if (ctx->tbuf != NULL) in setup_tbuf()
118 if ((ctx->tbuf = in setup_tbuf()
129 OPENSSL_free(rctx->tbuf); in pkey_rsa_cleanup()
179 memcpy(rctx->tbuf, tbs, tbslen); in pkey_rsa_sign()
181 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, in pkey_rsa_sign()
243 memcpy(rout, rctx->tbuf, ret); in pkey_rsa_verifyrecover()
298 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify()
314 rslen = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify()
320 if ((rslen != tbslen) || memcmp(tbs, rctx->tbuf, rslen)) in pkey_rsa_verify()
[all …]
/openssl/crypto/asn1/
H A Da_int.c343 unsigned char tbuf[sizeof(r)]; in asn1_string_set_int64() local
353 off = asn1_put_uint64(tbuf, 0 - (uint64_t)r); in asn1_string_set_int64()
356 off = asn1_put_uint64(tbuf, r); in asn1_string_set_int64()
359 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off); in asn1_string_set_int64()
382 unsigned char tbuf[sizeof(r)]; in asn1_string_set_uint64() local
386 off = asn1_put_uint64(tbuf, r); in asn1_string_set_uint64()
387 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off); in asn1_string_set_uint64()
/openssl/providers/implementations/signature/
H A Drsa_sig.c155 unsigned char *tbuf; member
612 if (ctx->tbuf != NULL) in setup_tbuf()
621 if (ctx->tbuf != NULL) in clean_tbuf()
622 OPENSSL_cleanse(ctx->tbuf, RSA_size(ctx->rsa)); in clean_tbuf()
628 OPENSSL_free(ctx->tbuf); in free_tbuf()
629 ctx->tbuf = NULL; in free_tbuf()
736 memcpy(prsactx->tbuf, tbs, tbslen); in rsa_sign_directly()
972 if (rout != prsactx->tbuf) { in rsa_verify_recover()
979 memcpy(rout, prsactx->tbuf, ret); in rsa_verify_recover()
1112 if ((rslen != tbslen) || memcmp(tbs, prsactx->tbuf, rslen)) in rsa_verify_directly()
[all …]
/openssl/crypto/objects/
H A Dobj_dat.c474 char tbuf[DECIMAL_SIZE(i) + DECIMAL_SIZE(l) + 2]; in OBJ_obj2txt() local
599 BIO_snprintf(tbuf, sizeof(tbuf), ".%lu", l); in OBJ_obj2txt()
600 i = strlen(tbuf); in OBJ_obj2txt()
602 OPENSSL_strlcpy(buf, tbuf, buf_len); in OBJ_obj2txt()
/openssl/apps/
H A Dpkeyutl.c808 unsigned char tbuf[TBUF_MAXSIZE]; in do_raw_keyop() local
848 buf_len = BIO_read(in, tbuf, TBUF_MAXSIZE); in do_raw_keyop()
855 rv = EVP_DigestVerifyUpdate(mctx, tbuf, (size_t)buf_len); in do_raw_keyop()
865 buf_len = BIO_read(in, tbuf, TBUF_MAXSIZE); in do_raw_keyop()
872 rv = EVP_DigestSignUpdate(mctx, tbuf, (size_t)buf_len); in do_raw_keyop()
/openssl/apps/lib/
H A Dapps.c2059 unsigned char tbuf[1024]; in bio_to_mem() local
2069 len = BIO_read(in, tbuf, len); in bio_to_mem()
2076 if (BIO_write(mem, tbuf, len) != len) { in bio_to_mem()
/openssl/test/
H A Devp_test.c416 unsigned char *tbuf, *p; in evp_test_buffer_ncopy() local
428 if (!TEST_ptr(tbuf = OPENSSL_malloc(tbuflen))) in evp_test_buffer_ncopy()
430 for (i = 0, p = tbuf; i < ncopy; i++, p += db->buflen) in evp_test_buffer_ncopy()
434 db->buf = tbuf; in evp_test_buffer_ncopy()

Completed in 68 milliseconds