Home
last modified time | relevance | path

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

/openssl/crypto/ct/
H A Dct_vfy.c31 unsigned char tmpbuf[12]; in sct_ctx_update() local
52 p = tmpbuf; in sct_ctx_update()
58 if (!EVP_DigestUpdate(ctx, tmpbuf, p - tmpbuf)) in sct_ctx_update()
76 p = tmpbuf; in sct_ctx_update()
79 if (!EVP_DigestUpdate(ctx, tmpbuf, 3)) in sct_ctx_update()
85 p = tmpbuf; in sct_ctx_update()
87 if (!EVP_DigestUpdate(ctx, tmpbuf, 2)) in sct_ctx_update()
/openssl/test/testutil/
H A Dstanza.c43 char tmpbuf[128]; in read_key() local
53 while (BIO_gets(s->fp, tmpbuf, sizeof(tmpbuf))) { in read_key()
55 if (!TEST_int_gt(BIO_puts(s->key, tmpbuf), 0)) in read_key()
57 if (HAS_PREFIX(tmpbuf, "-----END")) in read_key()
/openssl/engines/
H A De_ossltest.c700 unsigned char *tmpbuf; in ossltest_aes128_cbc_cipher() local
703 tmpbuf = OPENSSL_malloc(inl); in ossltest_aes128_cbc_cipher()
710 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
711 memcpy(tmpbuf, in, inl); in ossltest_aes128_cbc_cipher()
717 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
718 memcpy(out, tmpbuf, inl); in ossltest_aes128_cbc_cipher()
719 OPENSSL_free(tmpbuf); in ossltest_aes128_cbc_cipher()
741 if (tmpbuf != NULL) in ossltest_aes128_gcm_cipher()
742 memcpy(tmpbuf, in, inl); in ossltest_aes128_gcm_cipher()
749 memcpy(out, tmpbuf, inl); in ossltest_aes128_gcm_cipher()
[all …]
H A De_capi.c948 unsigned char *tmpbuf; in capi_rsa_priv_dec() local
987 if ((tmpbuf = OPENSSL_malloc(flen)) == NULL) in capi_rsa_priv_dec()
990 tmpbuf[flen - i - 1] = from[i]; in capi_rsa_priv_dec()
994 if (!CryptDecrypt(capi_key->key, 0, TRUE, flags, tmpbuf, &dlen)) { in capi_rsa_priv_dec()
997 OPENSSL_cleanse(tmpbuf, dlen); in capi_rsa_priv_dec()
998 OPENSSL_free(tmpbuf); in capi_rsa_priv_dec()
1001 memcpy(to, tmpbuf, (flen = (int)dlen)); in capi_rsa_priv_dec()
1003 OPENSSL_cleanse(tmpbuf, flen); in capi_rsa_priv_dec()
1004 OPENSSL_free(tmpbuf); in capi_rsa_priv_dec()
/openssl/demos/bio/
H A Dclient-arg.c18 char tmpbuf[1024]; in main() local
99 len = BIO_read(sbio, tmpbuf, 1024); in main()
102 BIO_write(out, tmpbuf, len); in main()
H A Dclient-conf.c19 char tmpbuf[1024]; in main() local
107 len = BIO_read(sbio, tmpbuf, 1024); in main()
110 BIO_write(out, tmpbuf, len); in main()
/openssl/apps/
H A Dasn1parse.c75 unsigned char *tmpbuf; in asn1parse_main() local
232 tmpbuf = str; in asn1parse_main()
243 tmpbuf += j; in asn1parse_main()
246 ctmpbuf = tmpbuf; in asn1parse_main()
263 tmpbuf = at->value.asn1_string->data; in asn1parse_main()
266 str = tmpbuf; in asn1parse_main()
/openssl/doc/man3/
H A DBIO_f_ssl.pod162 char tmpbuf[1024];
196 len = BIO_read(sbio, tmpbuf, 1024);
199 BIO_write(out, tmpbuf, len);
211 char tmpbuf[1024];
279 len = BIO_gets(sbio, tmpbuf, 1024);
282 BIO_write(sbio, tmpbuf, len);
283 BIO_write(out, tmpbuf, len);
285 if (tmpbuf[0] == '\r' || tmpbuf[0] == '\n')
H A DBIO_s_connect.pod196 char tmpbuf[1024];
207 len = BIO_read(cbio, tmpbuf, 1024);
210 BIO_write(out, tmpbuf, len);
/openssl/crypto/pkcs7/
H A Dpk7_smime.c507 BIO *tmpbuf, *bread; in PKCS7_decrypt() local
509 if ((tmpbuf = BIO_new(BIO_f_buffer())) == NULL) { in PKCS7_decrypt()
514 if ((bread = BIO_push(tmpbuf, tmpmem)) == NULL) { in PKCS7_decrypt()
516 BIO_free_all(tmpbuf); in PKCS7_decrypt()
/openssl/providers/implementations/kem/
H A Decx_kem.c394 unsigned char tmpbuf[OSSL_HPKE_MAX_PRIVATE]; in derivekey() local
406 if (info->Nsk > sizeof(tmpbuf)) in derivekey()
408 if (RAND_priv_bytes_ex(ctx->libctx, tmpbuf, info->Nsk, 0) <= 0) in derivekey()
410 seed = tmpbuf; in derivekey()
H A Dec_kem.c463 unsigned char tmpbuf[OSSL_HPKE_MAX_PRIVATE]; in derivekey() local
474 if (seedlen > sizeof(tmpbuf)) in derivekey()
476 if (RAND_priv_bytes_ex(ctx->libctx, tmpbuf, seedlen, 0) <= 0) in derivekey()
478 seed = tmpbuf; in derivekey()
/openssl/crypto/bio/
H A Dbio_print.c857 char *tmpbuf; in doapr_outch() local
859 tmpbuf = OPENSSL_realloc(*buffer, *maxlen); in doapr_outch()
860 if (tmpbuf == NULL) in doapr_outch()
862 *buffer = tmpbuf; in doapr_outch()
/openssl/crypto/x509/
H A Dx_pubkey.c141 unsigned char *tmpbuf = NULL; in x509_pubkey_ex_d2i_ex() local
194 tmpbuf = OPENSSL_memdup(in_saved, publen); in x509_pubkey_ex_d2i_ex()
195 if (tmpbuf == NULL) in x509_pubkey_ex_d2i_ex()
197 in_saved = tmpbuf; in x509_pubkey_ex_d2i_ex()
198 *tmpbuf = V_ASN1_CONSTRUCTED | V_ASN1_SEQUENCE; in x509_pubkey_ex_d2i_ex()
234 OPENSSL_free(tmpbuf); in x509_pubkey_ex_d2i_ex()
/openssl/apps/lib/
H A Ds_cb.c651 char tmpbuf[128]; in msg_cb() local
703 BIO_snprintf(tmpbuf, sizeof(tmpbuf)-1, ", Unknown (content_type=%d)", content_type); in msg_cb()
704 str_content_type = tmpbuf; in msg_cb()
707 …BIO_snprintf(tmpbuf, sizeof(tmpbuf)-1, "Not TLS data or unknown version (version=%d, content_type=… in msg_cb()
708 str_version = tmpbuf; in msg_cb()

Completed in 33 milliseconds