Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 141) sorted by relevance

123456

/openssl/crypto/x509/
H A Dx_all.c218 X509 *d2i_X509_fp(FILE *fp, X509 **x509) in d2i_X509_fp() argument
223 int i2d_X509_fp(FILE *fp, const X509 *x509) in i2d_X509_fp() argument
262 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) in d2i_PKCS7_fp() argument
279 int i2d_PKCS7_fp(FILE *fp, const PKCS7 *p7) in i2d_PKCS7_fp() argument
339 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPrivateKey_fp() argument
349 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPublicKey_fp() argument
354 RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa) in d2i_RSA_PUBKEY_fp() argument
414 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp() argument
677 fp, xpk); in d2i_X509_PUBKEY_fp()
744 BIO_set_fp(b, fp, BIO_NOCLOSE); in d2i_PrivateKey_ex_fp()
[all …]
/openssl/demos/pkcs12/
H A Dpkread.c50 FILE *fp; in main() local
63 if ((fp = fopen(argv[1], "rb")) == NULL) { in main()
67 p12 = d2i_PKCS12_fp(fp, NULL); in main()
68 fclose(fp); in main()
81 if ((fp = fopen(argv[3], "w")) == NULL) { in main()
86 fprintf(fp, "***Friendly Name***\n%s\n", name); in main()
88 fprintf(fp, "***Private Key***\n"); in main()
92 fprintf(fp, "***User Certificate***\n"); in main()
93 PEM_write_X509_AUX(fp, cert); in main()
96 fprintf(fp, "***Other Certificates***\n"); in main()
[all …]
H A Dpkwrite.c20 FILE *fp; in main() local
30 if ((fp = fopen(argv[1], "r")) == NULL) { in main()
34 cert = PEM_read_X509(fp, NULL, NULL, NULL); in main()
35 rewind(fp); in main()
36 pkey = PEM_read_PrivateKey(fp, NULL, NULL, NULL); in main()
37 fclose(fp); in main()
44 if ((fp = fopen(argv[4], "wb")) == NULL) { in main()
49 i2d_PKCS12_fp(fp, p12); in main()
51 fclose(fp); in main()
/openssl/apps/
H A Dopenssl.c52 fp->name, fp->deprecated_version); in warn_deprecated()
239 FUNCTION f, *fp; in main() local
285 if (fp == NULL) { in main()
342 FUNCTION *fp; in help_main() local
379 for (fp = functions; fp->name != NULL; fp++) { in help_main()
386 tp = fp->type; in help_main()
407 FUNCTION f, *fp; in do_cmd() local
414 if (fp == NULL) { in do_cmd()
418 fp = &f; in do_cmd()
422 fp = &f; in do_cmd()
[all …]
/openssl/ms/
H A Dapplink.c71 static int app_feof(FILE *fp) in app_feof() argument
73 return feof(fp); in app_feof()
76 static int app_ferror(FILE *fp) in app_ferror() argument
78 return ferror(fp); in app_ferror()
81 static void app_clearerr(FILE *fp) in app_clearerr() argument
83 clearerr(fp); in app_clearerr()
86 static int app_fileno(FILE *fp) in app_fileno() argument
88 return _fileno(fp); in app_fileno()
91 static int app_fsetmod(FILE *fp, char mod) in app_fsetmod() argument
93 return _setmode(_fileno(fp), mod == 'b' ? _O_BINARY : _O_TEXT); in app_fsetmod()
/openssl/crypto/bn/asm/
H A Dsparct4-mont.pl160 or $sentinel,%fp,%fp
175 save %sp,-128,%sp; or $sentinel,%fp,%fp
196 save %sp,-128,%sp; or $sentinel,%fp,%fp
208 save %sp,-128,%sp; or $sentinel,%fp,%fp
220 save %sp,-128,%sp; or $sentinel,%fp,%fp
239 save %sp,-128,%sp; or $sentinel,%fp,%fp
251 save %sp,-128,%sp; or $sentinel,%fp,%fp
302 srl %fp,0,%fp ! just in case?
345 save %sp,-128,%sp; or $sentinel,%fp,%fp
480 or $sentinel,%fp,%fp
[all …]
/openssl/crypto/ts/
H A Dts_asn1.c36 d2i_TS_MSG_IMPRINT, fp, a); in d2i_TS_MSG_IMPRINT_fp()
39 int i2d_TS_MSG_IMPRINT_fp(FILE *fp, const TS_MSG_IMPRINT *a) in i2d_TS_MSG_IMPRINT_fp() argument
66 TS_REQ *d2i_TS_REQ_fp(FILE *fp, TS_REQ **a) in d2i_TS_REQ_fp() argument
71 int i2d_TS_REQ_fp(FILE *fp, const TS_REQ *a) in i2d_TS_REQ_fp() argument
73 return ASN1_i2d_fp_of(TS_REQ, i2d_TS_REQ, fp, a); in i2d_TS_REQ_fp()
112 TS_TST_INFO *d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a) in d2i_TS_TST_INFO_fp() argument
118 int i2d_TS_TST_INFO_fp(FILE *fp, const TS_TST_INFO *a) in i2d_TS_TST_INFO_fp() argument
120 return ASN1_i2d_fp_of(TS_TST_INFO, i2d_TS_TST_INFO, fp, a); in i2d_TS_TST_INFO_fp()
192 TS_RESP *d2i_TS_RESP_fp(FILE *fp, TS_RESP **a) in d2i_TS_RESP_fp() argument
197 int i2d_TS_RESP_fp(FILE *fp, const TS_RESP *a) in i2d_TS_RESP_fp() argument
[all …]
/openssl/crypto/idea/
H A Di_skey.c64 register IDEA_INT *fp, *tp, t; in IDEA_set_decrypt_key() local
67 fp = &(ek->data[8][0]); in IDEA_set_decrypt_key()
69 *(tp++) = inverse(fp[0]); in IDEA_set_decrypt_key()
70 *(tp++) = ((int)(0x10000L - fp[2]) & 0xffff); in IDEA_set_decrypt_key()
71 *(tp++) = ((int)(0x10000L - fp[1]) & 0xffff); in IDEA_set_decrypt_key()
72 *(tp++) = inverse(fp[3]); in IDEA_set_decrypt_key()
75 fp -= 6; in IDEA_set_decrypt_key()
76 *(tp++) = fp[4]; in IDEA_set_decrypt_key()
77 *(tp++) = fp[5]; in IDEA_set_decrypt_key()
/openssl/crypto/ec/
H A Deck_prn.c21 int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off) in ECPKParameters_print_fp() argument
30 BIO_set_fp(b, fp, BIO_NOCLOSE); in ECPKParameters_print_fp()
36 int EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off) in EC_KEY_print_fp() argument
45 BIO_set_fp(b, fp, BIO_NOCLOSE); in EC_KEY_print_fp()
51 int ECParameters_print_fp(FILE *fp, const EC_KEY *x) in ECParameters_print_fp() argument
60 BIO_set_fp(b, fp, BIO_NOCLOSE); in ECParameters_print_fp()
67 static int print_bin(BIO *fp, const char *str, const unsigned char *num,
237 if (BIO_write(fp, str, off) <= 0) in print_bin()
243 if (BIO_printf(fp, "%s", name) <= 0) in print_bin()
250 if (BIO_write(fp, str, off + 1 + 4) <= 0) in print_bin()
[all …]
/openssl/crypto/rand/
H A Drand_egd.c111 FILE *fp = NULL; in RAND_query_egd_bytes() local
131 if (fd == -1 || (fp = fdopen(fd, "r+")) == NULL) in RAND_query_egd_bytes()
133 setbuf(fp, NULL); in RAND_query_egd_bytes()
179 if (fwrite(tempbuf, sizeof(char), 2, fp) != 2 || fflush(fp) == EOF) in RAND_query_egd_bytes()
181 if (fread(tempbuf, sizeof(char), 1, fp) != 1 || tempbuf[0] == 0) in RAND_query_egd_bytes()
191 i = fread(buf, sizeof(char), numbytes, fp); in RAND_query_egd_bytes()
199 if (fp != NULL) in RAND_query_egd_bytes()
200 fclose(fp); in RAND_query_egd_bytes()
/openssl/crypto/sha/asm/
H A Dsha1-x86_64.pl488 my $fp="%r11";
948 mov -40($fp),%r14
950 mov -32($fp),%r13
956 mov -8($fp),%rbx
958 lea ($fp),%rsp
984 mov %rsp,$fp
1332 mov -8($fp),%rbx
1334 lea ($fp),%rsp
1363 mov %rsp,$fp
1823 mov -8($fp),%rbx
[all …]
/openssl/crypto/pem/
H A Dpem_pk8.c208 int i2d_PKCS8PrivateKey_fp(FILE *fp, const EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_fp() argument
212 return do_pk8pkey_fp(fp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_fp()
215 int i2d_PKCS8PrivateKey_nid_fp(FILE *fp, const EVP_PKEY *x, int nid, in i2d_PKCS8PrivateKey_nid_fp() argument
219 return do_pk8pkey_fp(fp, x, 1, nid, NULL, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_nid_fp()
222 int PEM_write_PKCS8PrivateKey_nid(FILE *fp, const EVP_PKEY *x, int nid, in PEM_write_PKCS8PrivateKey_nid() argument
226 return do_pk8pkey_fp(fp, x, 0, nid, NULL, kstr, klen, cb, u, NULL); in PEM_write_PKCS8PrivateKey_nid()
233 return do_pk8pkey_fp(fp, x, 0, -1, enc, kstr, klen, cb, u, NULL); in PEM_write_PKCS8PrivateKey()
236 static int do_pk8pkey_fp(FILE *fp, const EVP_PKEY *x, int isder, int nid, in do_pk8pkey_fp() argument
243 if ((bp = BIO_new_fp(fp, BIO_NOCLOSE)) == NULL) { in do_pk8pkey_fp()
252 EVP_PKEY *d2i_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, in d2i_PKCS8PrivateKey_fp() argument
[all …]
H A Dpem_all.c79 RSA *PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) in PEM_read_RSAPrivateKey() argument
82 pktmp = PEM_read_PrivateKey(fp, NULL, cb, u); in PEM_read_RSAPrivateKey()
120 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb()
123 pktmp = PEM_read_PrivateKey(fp, NULL, cb, u); in IMPLEMENT_PEM_write_cb()
166 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_rw()
170 pktmp = PEM_read_PrivateKey(fp, NULL, cb, u); in IMPLEMENT_PEM_rw()
209 DH *PEM_read_DHparams(FILE *fp, DH **x, pem_password_cb *cb, void *u) in PEM_read_DHparams() argument
218 BIO_set_fp(b, fp, BIO_NOCLOSE); in PEM_read_DHparams()
/openssl/crypto/lhash/
H A Dlh_stats.c27 void OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_stats() argument
34 BIO_set_fp(bp, fp, BIO_NOCLOSE); in OPENSSL_LH_stats()
39 void OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_node_stats() argument
46 BIO_set_fp(bp, fp, BIO_NOCLOSE); in OPENSSL_LH_node_stats()
51 void OPENSSL_LH_node_usage_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_node_usage_stats() argument
58 BIO_set_fp(bp, fp, BIO_NOCLOSE); in OPENSSL_LH_node_usage_stats()
/openssl/crypto/bio/
H A Dbio_dump.c98 static int write_fp(const void *data, size_t len, void *fp) in write_fp() argument
100 return UP_fwrite(data, len, 1, fp); in write_fp()
103 int BIO_dump_fp(FILE *fp, const void *s, int len) in BIO_dump_fp() argument
105 return BIO_dump_cb(write_fp, fp, s, len); in BIO_dump_fp()
108 int BIO_dump_indent_fp(FILE *fp, const void *s, int len, int indent) in BIO_dump_indent_fp() argument
110 return BIO_dump_indent_cb(write_fp, fp, s, len, indent); in BIO_dump_indent_fp()
H A Dbss_file.c181 FILE *fp = (FILE *)b->ptr; in file_ctrl() local
192 ret = (long)fseek(fp, num, 0); in file_ctrl()
196 ret = (long)UP_feof(fp); in file_ctrl()
198 ret = (long)feof(fp); in file_ctrl()
205 ret = ftell(fp); in file_ctrl()
295 fp = openssl_fopen(ptr, p); in file_ctrl()
296 if (fp == NULL) { in file_ctrl()
304 b->ptr = fp; in file_ctrl()
/openssl/crypto/dsa/
H A Ddsa_prn.c22 int DSA_print_fp(FILE *fp, const DSA *x, int off) in DSA_print_fp() argument
31 BIO_set_fp(b, fp, BIO_NOCLOSE); in DSA_print_fp()
37 int DSAparams_print_fp(FILE *fp, const DSA *x) in DSAparams_print_fp() argument
46 BIO_set_fp(b, fp, BIO_NOCLOSE); in DSAparams_print_fp()
/openssl/crypto/aes/asm/
H A Daes-s390x.pl1392 my $fp ="%r7";
1476 lgr $fp,$sp
1485 srlg $fp,$fp,4 # convert bytes to blocks, minimum 16
1515 lgr $s3,$fp
1530 slgr $s1,$fp
1532 algr $fp,$s1
1544 lgr $s3,$fp
1559 lgr $s3,$fp
1698 lgr $fp,$sp
1752 lgr $s3,$fp
[all …]
H A Dbsaes-armv7.pl1382 mov sp, $fp
1574 mov sp, $fp
1668 mov $fp, r6
1986 mov $fp, r4
2018 mov $fp, r4
2022 bic r0, $fp, #0xf
2033 mov sp, $fp
2072 mov $fp, r6
2398 mov $fp, r4
2453 mov $fp, r4
[all …]
/openssl/doc/man3/
H A DPEM_read_bio_PrivateKey.pod101 int PEM_write_PUBKEY(FILE *fp, EVP_PKEY *x);
111 int PEM_write_X509(FILE *fp, X509 *x);
123 int PEM_write_X509_AUX(FILE *fp, X509 *x);
144 int PEM_write_PKCS7(FILE *fp, PKCS7 *x);
163 RSA *PEM_read_RSAPublicKey(FILE *fp, RSA **x,
170 RSA *PEM_read_RSA_PUBKEY(FILE *fp, RSA **x,
173 int PEM_write_RSA_PUBKEY(FILE *fp, RSA *x);
188 DSA *PEM_read_DSA_PUBKEY(FILE *fp, DSA **x,
191 int PEM_write_DSA_PUBKEY(FILE *fp, DSA *x);
195 int PEM_write_DSAparams(FILE *fp, DSA *x);
[all …]
H A DSSL_SESSION_print.pod14 int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses);
15 int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);
21 B<ses> to the BIO B<fp>.
24 to the FILE B<fp>.
H A DPKCS12_newpass.pod57 FILE *fp;
64 if ((fp = fopen(argv[1], "rb")) == NULL) {
68 p12 = d2i_PKCS12_fp(fp, NULL);
69 fclose(fp);
81 if ((fp = fopen(argv[4], "wb")) == NULL) {
86 i2d_PKCS12_fp(fp, p12);
88 fclose(fp);
H A DRSA_print.pod18 int RSA_print_fp(FILE *fp, const RSA *x, int offset);
27 int DSAparams_print_fp(FILE *fp, const DSA *x);
29 int DSA_print_fp(FILE *fp, const DSA *x, int offset);
38 int DHparams_print_fp(FILE *fp, const DH *x);
47 key, DSA parameters or key or DH parameters is printed to B<bp> or B<fp>.
/openssl/include/openssl/
H A Ddh.h177 # define d2i_DHparams_fp(fp, x) \ argument
180 (fp), \
182 # define i2d_DHparams_fp(fp, x) \ argument
183 ASN1_i2d_fp(i2d_DHparams,(fp), (unsigned char *)(x))
189 # define d2i_DHxparams_fp(fp,x) \ argument
192 (fp), \
194 # define i2d_DHxparams_fp(fp, x) \ argument
195 ASN1_i2d_fp(i2d_DHxparams,(fp), (unsigned char *)(x))
244 OSSL_DEPRECATEDIN_3_0 int DHparams_print_fp(FILE *fp, const DH *x);
/openssl/test/testutil/
H A Dstanza.c24 if (!TEST_ptr(s->fp = BIO_new_file(testfile, "r"))) in test_start_file()
34 BIO_free(s->fp); in test_end_file()
53 while (BIO_gets(s->fp, tmpbuf, sizeof(tmpbuf))) { in read_key()
92 for (s->numpairs = 0; BIO_gets(s->fp, s->buff, sizeof(s->buff)); ) { in test_readstanza()

Completed in 73 milliseconds

123456