Home
last modified time | relevance | path

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

/openssl-master/crypto/ct/
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-master/test/testutil/
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 (strncmp(tmpbuf, "-----END", 8) == 0) in read_key()
/openssl-master/engines/
A De_ossltest.c704 unsigned char *tmpbuf; in ossltest_aes128_cbc_cipher() local
707 tmpbuf = OPENSSL_malloc(inl); in ossltest_aes128_cbc_cipher()
714 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
715 memcpy(tmpbuf, in, inl); in ossltest_aes128_cbc_cipher()
721 if (tmpbuf != NULL) in ossltest_aes128_cbc_cipher()
722 memcpy(out, tmpbuf, inl); in ossltest_aes128_cbc_cipher()
723 OPENSSL_free(tmpbuf); in ossltest_aes128_cbc_cipher()
745 if (tmpbuf != NULL) in ossltest_aes128_gcm_cipher()
746 memcpy(tmpbuf, in, inl); in ossltest_aes128_gcm_cipher()
753 memcpy(out, tmpbuf, inl); in ossltest_aes128_gcm_cipher()
[all …]
A De_capi.c930 unsigned char *tmpbuf; in capi_rsa_priv_dec() local
969 if ((tmpbuf = OPENSSL_malloc(flen)) == NULL) { in capi_rsa_priv_dec()
974 tmpbuf[flen - i - 1] = from[i]; in capi_rsa_priv_dec()
978 if (!CryptDecrypt(capi_key->key, 0, TRUE, flags, tmpbuf, &dlen)) { in capi_rsa_priv_dec()
981 OPENSSL_cleanse(tmpbuf, dlen); in capi_rsa_priv_dec()
982 OPENSSL_free(tmpbuf); in capi_rsa_priv_dec()
985 memcpy(to, tmpbuf, (flen = (int)dlen)); in capi_rsa_priv_dec()
987 OPENSSL_cleanse(tmpbuf, flen); in capi_rsa_priv_dec()
988 OPENSSL_free(tmpbuf); in capi_rsa_priv_dec()
/openssl-master/demos/bio/
A Dclient-arg.c18 char tmpbuf[1024]; in main() local
98 len = BIO_read(sbio, tmpbuf, 1024); in main()
101 BIO_write(out, tmpbuf, len); in main()
A Dclient-conf.c19 char tmpbuf[1024]; in main() local
106 len = BIO_read(sbio, tmpbuf, 1024); in main()
109 BIO_write(out, tmpbuf, len); in main()
/openssl-master/apps/
A Dasn1parse.c75 unsigned char *tmpbuf; in asn1parse_main() local
230 tmpbuf = str; in asn1parse_main()
241 tmpbuf += j; in asn1parse_main()
244 ctmpbuf = tmpbuf; in asn1parse_main()
261 tmpbuf = at->value.asn1_string->data; in asn1parse_main()
264 str = tmpbuf; in asn1parse_main()
/openssl-master/doc/man3/
A DBIO_f_ssl.pod158 char tmpbuf[1024];
192 len = BIO_read(sbio, tmpbuf, 1024);
195 BIO_write(out, tmpbuf, len);
207 char tmpbuf[1024];
268 len = BIO_gets(sbio, tmpbuf, 1024);
271 BIO_write(sbio, tmpbuf, len);
272 BIO_write(out, tmpbuf, len);
274 if (tmpbuf[0] == '\r' || tmpbuf[0] == '\n')
A DBIO_s_connect.pod172 char tmpbuf[1024];
183 len = BIO_read(cbio, tmpbuf, 1024);
186 BIO_write(out, tmpbuf, len);
/openssl-master/crypto/pkcs7/
A Dpk7_smime.c521 BIO *tmpbuf, *bread; in PKCS7_decrypt() local
523 if ((tmpbuf = BIO_new(BIO_f_buffer())) == NULL) { in PKCS7_decrypt()
528 if ((bread = BIO_push(tmpbuf, tmpmem)) == NULL) { in PKCS7_decrypt()
530 BIO_free_all(tmpbuf); in PKCS7_decrypt()
/openssl-master/crypto/x509/
A Dx_pubkey.c139 unsigned char *tmpbuf = NULL; in x509_pubkey_ex_d2i_ex() local
192 tmpbuf = OPENSSL_memdup(in_saved, publen); in x509_pubkey_ex_d2i_ex()
193 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-master/crypto/bio/
A Dbio_print.c841 char *tmpbuf; in doapr_outch() local
843 tmpbuf = OPENSSL_realloc(*buffer, *maxlen); in doapr_outch()
844 if (tmpbuf == NULL) { in doapr_outch()
848 *buffer = tmpbuf; in doapr_outch()
/openssl-master/apps/lib/
A Ds_cb.c563 char tmpbuf[128]; in msg_cb() local
615 BIO_snprintf(tmpbuf, sizeof(tmpbuf)-1, ", Unknown (content_type=%d)", content_type); in msg_cb()
616 str_content_type = tmpbuf; in msg_cb()
619 …BIO_snprintf(tmpbuf, sizeof(tmpbuf)-1, "Not TLS data or unknown version (version=%d, content_type=… in msg_cb()
620 str_version = tmpbuf; in msg_cb()

Completed in 22 milliseconds