Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 154) sorted by relevance

1234567

/openssl/crypto/ocsp/
H A Docsp_prn.c22 i2a_ASN1_OBJECT(bp, a->hashAlgorithm.algorithm); in ocsp_certid_print()
24 i2a_ASN1_STRING(bp, &a->issuerNameHash, 0); in ocsp_certid_print()
26 i2a_ASN1_STRING(bp, &a->issuerKeyHash, 0); in ocsp_certid_print()
28 i2a_ASN1_INTEGER(bp, &a->serialNumber); in ocsp_certid_print()
29 BIO_printf(bp, "\n"); in ocsp_certid_print()
111 ocsp_certid_print(bp, cid, 8); in OCSP_REQUEST_print()
112 if (!X509V3_extensions_print(bp, in OCSP_REQUEST_print()
206 if (BIO_printf(bp, in OCSP_RESPONSE_print()
222 if (BIO_write(bp, "\n", 1) <= 0) in OCSP_RESPONSE_print()
224 if (!X509V3_extensions_print(bp, in OCSP_RESPONSE_print()
[all …]
H A Dv3_ocsp.c42 BIO *bp, int ind);
119 if (BIO_write(bp, "\n", 1) <= 0) in i2r_ocsp_crlid()
125 if (i2a_ASN1_INTEGER(bp, a->crlNum) <= 0) in i2r_ocsp_crlid()
127 if (BIO_write(bp, "\n", 1) <= 0) in i2r_ocsp_crlid()
135 if (BIO_write(bp, "\n", 1) <= 0) in i2r_ocsp_crlid()
144 BIO *bp, int ind) in i2r_ocsp_acutoff() argument
146 if (BIO_printf(bp, "%*s", ind, "") <= 0) in i2r_ocsp_acutoff()
148 if (!ASN1_GENERALIZEDTIME_print(bp, cutoff)) in i2r_ocsp_acutoff()
156 if (BIO_printf(bp, "%*s", ind, "") <= 0) in i2r_object()
158 if (i2a_ASN1_OBJECT(bp, oid) <= 0) in i2r_object()
[all …]
/openssl/ssl/
H A Dssl_txt.c32 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) in SSL_SESSION_print() argument
41 if (BIO_puts(bp, "SSL-Session:\n") <= 0) in SSL_SESSION_print()
58 if (BIO_printf(bp, " Cipher : %s\n", in SSL_SESSION_print()
63 if (BIO_puts(bp, " Session-ID: ") <= 0) in SSL_SESSION_print()
85 if (BIO_puts(bp, "\n PSK identity: ") <= 0) in SSL_SESSION_print()
102 if (BIO_printf(bp, in SSL_SESSION_print()
139 if (BIO_puts(bp, "\n") <= 0) in SSL_SESSION_print()
181 if (BIO_puts(bp, "RSA ") <= 0) in SSL_SESSION_print_keylog()
184 if (BIO_puts(bp, "Session-ID:") <= 0) in SSL_SESSION_print_keylog()
190 if (BIO_puts(bp, " Master-Key:") <= 0) in SSL_SESSION_print_keylog()
[all …]
/openssl/crypto/bn/
H A Dbn_nist.c534 acc -= bp[7 - 7]; in BN_nist_mod_224()
540 acc -= bp[8 - 7]; in BN_nist_mod_224()
546 acc -= bp[9 - 7]; in BN_nist_mod_224()
552 acc += bp[7 - 7]; in BN_nist_mod_224()
559 acc += bp[8 - 7]; in BN_nist_mod_224()
566 acc += bp[9 - 7]; in BN_nist_mod_224()
705 acc += bp[8 - 8]; in BN_nist_mod_256()
706 acc += bp[9 - 8]; in BN_nist_mod_256()
715 acc += bp[9 - 8]; in BN_nist_mod_256()
740 acc -= bp[8 - 8]; in BN_nist_mod_256()
[all …]
H A Dbn_sparc.c16 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont() argument
31 const BN_ULONG *bp, in bn_mul_mont()
35 const BN_ULONG *bp, const BN_ULONG *np, in bn_mul_mont()
38 const BN_ULONG *bp, const BN_ULONG *np, in bn_mul_mont()
41 const BN_ULONG *bp, const BN_ULONG *np, in bn_mul_mont()
52 if ((*worker) (rp, ap, bp, np, n0)) in bn_mul_mont()
55 if ((*worker) (rp, ap, bp, np, n0)) in bn_mul_mont()
57 return bn_mul_mont_vis3(rp, ap, bp, np, n0, num); in bn_mul_mont()
60 return bn_mul_mont_vis3(rp, ap, bp, np, n0, num); in bn_mul_mont()
74 return bn_mul_mont_fpu(rp, ap, bp, np, n0, num); in bn_mul_mont()
[all …]
H A Dbn_ppc.c15 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont() argument
18 int bn_mul_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont()
20 int bn_mul4x_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont()
23 const BN_ULONG *bp, const BN_ULONG *np, in bn_mul_mont()
26 const BN_ULONG *bp, const BN_ULONG *np, in bn_mul_mont()
33 return bn_mul4x_mont_int(rp, ap, bp, np, n0, num); in bn_mul_mont()
46 return bn_mul_mont_300_fixed_n6(rp, ap, bp, np, n0, num); in bn_mul_mont()
48 return bn_mul_mont_fixed_n6(rp, ap, bp, np, n0, num); in bn_mul_mont()
52 return bn_mul_mont_int(rp, ap, bp, np, n0, num); in bn_mul_mont()
/openssl/crypto/x509/
H A Dt_req.c58 if (BIO_write(bp, " Data:\n", 10) <= 0) in X509_REQ_print_ex()
77 if (BIO_write(bp, "\n", 1) <= 0) in X509_REQ_print_ex()
89 if (i2a_ASN1_OBJECT(bp, koid) <= 0) in X509_REQ_print_ex()
91 if (BIO_puts(bp, "\n") <= 0) in X509_REQ_print_ex()
98 ERR_print_errors(bp); in X509_REQ_print_ex()
142 if (BIO_puts(bp, ":") <= 0) in X509_REQ_print_ex()
153 if (BIO_puts(bp, "\n") <= 0) in X509_REQ_print_ex()
179 if (i2a_ASN1_OBJECT(bp, obj) <= 0) in X509_REQ_print_ex()
186 || ASN1_STRING_print(bp, in X509_REQ_print_ex()
190 if (BIO_write(bp, "\n", 1) <= 0) in X509_REQ_print_ex()
[all …]
H A Dt_x509.c48 int X509_print(BIO *bp, X509 *x) in X509_print() argument
130 if (BIO_puts(bp, " ") <= 0) in X509_print_ex()
142 if (BIO_write(bp, "\n", 1) <= 0) in X509_print_ex()
178 if (BIO_puts(bp, "\n") <= 0) in X509_print_ex()
184 ERR_print_errors(bp); in X509_print_ex()
220 if (!X509_aux_print(bp, x, 0)) in X509_print_ex()
228 int X509_ocspid_print(BIO *bp, X509 *x) in X509_ocspid_print() argument
239 if (x == NULL || bp == NULL) in X509_ocspid_print()
284 BIO_printf(bp, "\n"); in X509_ocspid_print()
311 if (BIO_write(bp, "\n", 1) != 1) in X509_signature_dump()
[all …]
H A Dv3_admis.c54 BIO *bp, int ind);
72 BIO *bp, int ind) in i2r_NAMING_AUTHORITY() argument
96 if (BIO_printf(bp, "%s%s%s%s\n", ln ? ln : "", in i2r_NAMING_AUTHORITY()
103 || BIO_printf(bp, "\n") <= 0) in i2r_NAMING_AUTHORITY()
109 || BIO_printf(bp, "\n") <= 0) in i2r_NAMING_AUTHORITY()
119 BIO *bp, int ind) in i2r_ADMISSION_SYNTAX() argument
126 || BIO_printf(bp, "%*s ", ind, "") <= 0 in i2r_ADMISSION_SYNTAX()
128 || BIO_printf(bp, "\n") <= 0) in i2r_ADMISSION_SYNTAX()
141 || BIO_printf(bp, "\n") <= 0) in i2r_ADMISSION_SYNTAX()
159 || BIO_printf(bp, "\n") <= 0) in i2r_ADMISSION_SYNTAX()
[all …]
H A Dx_all.c150 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio() argument
155 int i2d_X509_bio(BIO *bp, const X509 *x509) in i2d_X509_bio() argument
206 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) in d2i_PKCS7_bio() argument
224 int i2d_PKCS7_bio(BIO *bp, const PKCS7 *p7) in i2d_PKCS7_bio() argument
293 RSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPrivateKey_bio() argument
303 RSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPublicKey_bio() argument
308 RSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa) in d2i_RSA_PUBKEY_bio() argument
346 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio() argument
356 DSA *d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa) in d2i_DSA_PUBKEY_bio() argument
608 bp, xpk); in d2i_X509_PUBKEY_bio()
[all …]
/openssl/crypto/asn1/
H A Dasn1_parse.c45 if (bp != NULL) { in asn1_print_info()
46 if (BIO_set_prefix(bp, str) <= 0) { in asn1_print_info()
48 || (bp = BIO_push(bio, bp)) == NULL) in asn1_print_info()
52 saved_indent = BIO_get_indent(bp); in asn1_print_info()
53 if (BIO_set_prefix(bp, str) <= 0 || BIO_set_indent(bp, indent) < 0) in asn1_print_info()
73 i = (BIO_printf(bp, "%-18s", p) > 0); in asn1_print_info()
76 BIO_set_indent(bp, saved_indent); in asn1_print_info()
78 BIO_pop(bp); in asn1_print_info()
135 if (BIO_write(bp, "\n", 1) <= 0) in asn1_parse2()
168 if (BIO_write(bp, "\n", 1) <= 0) in asn1_parse2()
[all …]
H A Dt_pkey.c21 int ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int indent) in ASN1_buf_print() argument
27 if (i > 0 && BIO_puts(bp, "\n") <= 0) in ASN1_buf_print()
29 if (!BIO_indent(bp, indent, ASN1_PRINT_MAX_INDENT)) in ASN1_buf_print()
36 if (BIO_printf(bp, "%02x%s", buf[i], in ASN1_buf_print()
40 if (BIO_write(bp, "\n", 1) <= 0) in ASN1_buf_print()
45 int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, in ASN1_bn_print() argument
56 if (!BIO_indent(bp, indent, ASN1_PRINT_MAX_INDENT)) in ASN1_bn_print()
59 if (BIO_printf(bp, "%s 0\n", number) <= 0) in ASN1_bn_print()
65 if (BIO_printf(bp, "%s %s%lu (%s0x%lx)\n", number, neg, in ASN1_bn_print()
77 if (BIO_printf(bp, "%s%s\n", number, in ASN1_bn_print()
[all …]
H A Df_int.c16 int i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a) in i2a_ASN1_INTEGER() argument
26 if (BIO_write(bp, "-", 1) != 1) in i2a_ASN1_INTEGER()
32 if (BIO_write(bp, "00", 2) != 2) in i2a_ASN1_INTEGER()
38 if (BIO_write(bp, "\\\n", 2) != 2) in i2a_ASN1_INTEGER()
44 if (BIO_write(bp, buf, 2) != 2) in i2a_ASN1_INTEGER()
54 int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size) in a2i_ASN1_INTEGER() argument
63 bufsize = BIO_gets(bp, buf, size); in a2i_ASN1_INTEGER()
131 bufsize = BIO_gets(bp, buf, size); in a2i_ASN1_INTEGER()
144 int i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a) in i2a_ASN1_ENUMERATED() argument
146 return i2a_ASN1_INTEGER(bp, a); in i2a_ASN1_ENUMERATED()
[all …]
/openssl/crypto/lhash/
H A Dlh_stats.c29 BIO *bp; in OPENSSL_LH_stats() local
31 bp = BIO_new(BIO_s_file()); in OPENSSL_LH_stats()
32 if (bp == NULL) in OPENSSL_LH_stats()
36 BIO_free(bp); in OPENSSL_LH_stats()
41 BIO *bp; in OPENSSL_LH_node_stats() local
43 bp = BIO_new(BIO_s_file()); in OPENSSL_LH_node_stats()
44 if (bp == NULL) in OPENSSL_LH_node_stats()
48 BIO_free(bp); in OPENSSL_LH_node_stats()
53 BIO *bp; in OPENSSL_LH_node_usage_stats() local
56 if (bp == NULL) in OPENSSL_LH_node_usage_stats()
[all …]
/openssl/crypto/ec/asm/
H A Decp_nistz256-sparcv9.pl165 mov $ap,$bp
396 ld [$bp+4],$t1
397 ld [$bp+8],$t2
398 ld [$bp+12],$t3
400 ld [$bp+16],$t4
401 ld [$bp+20],$t5
578 mov $ap,$bp
596 ld [$bp+4],$t1
597 ld [$bp+8],$t2
647 ld [$bp+4],$t1
[all …]
H A Decp_nistz256-armv8.pl135 adr $bp,.LRR // &bp[0]
160 adr $bp,.Lone // &bp[0]
355 mov $bp,$ap
842 add $bp,sp,#$S
851 add $bp,sp,#$M
948 add $bp,sp,#$S1
1023 add $bp,sp,#$H
1062 add $bp,sp,#$R
1233 add $bp,sp,#$H
1272 add $bp,sp,#$R
[all …]
/openssl/crypto/pem/
H A Dpem_pk8.c125 ret = ret && OSSL_ENCODER_to_bio(ctx, bp); in do_pk8pkey()
152 ret = i2d_PKCS8_bio(bp, p8); in do_pk8pkey()
154 ret = PEM_write_bio_PKCS8(bp, p8); in do_pk8pkey()
178 p8 = d2i_PKCS8_bio(bp, NULL); in d2i_PKCS8PrivateKey_bio()
240 BIO *bp; in do_pk8pkey_fp() local
243 if ((bp = BIO_new_fp(fp, BIO_NOCLOSE)) == NULL) { in do_pk8pkey_fp()
248 BIO_free(bp); in do_pk8pkey_fp()
255 BIO *bp; in d2i_PKCS8PrivateKey_fp() local
258 if ((bp = BIO_new_fp(fp, BIO_NOCLOSE)) == NULL) { in d2i_PKCS8PrivateKey_fp()
262 ret = d2i_PKCS8PrivateKey_bio(bp, x, cb, u); in d2i_PKCS8PrivateKey_fp()
[all …]
H A Dpem_pkey.c43 if ((pos = BIO_tell(bp)) < 0) in pem_read_bio_key_decoder()
61 if (BIO_eof(bp) != 0 || (newpos = BIO_tell(bp)) < 0 || newpos <= pos) { in pem_read_bio_key_decoder()
112 bp, cb, u)) { in pem_read_bio_key_legacy()
123 bp, cb, u)) { in pem_read_bio_key_legacy()
206 static EVP_PKEY *pem_read_bio_key(BIO *bp, EVP_PKEY **x, in pem_read_bio_key() argument
217 if ((pos = BIO_tell(bp)) < 0) { in pem_read_bio_key()
221 bp = BIO_push(new_bio, bp); in pem_read_bio_key()
222 pos = BIO_tell(bp); in pem_read_bio_key()
236 && (BIO_seek(bp, pos) < 0 in pem_read_bio_key()
237 || (ret = pem_read_bio_key_legacy(bp, x, in pem_read_bio_key()
[all …]
/openssl/apps/
H A Drehash.c129 BUCKET *bp; in add_entry() local
133 for (bp = hash_table[ndx]; bp; bp = bp->next) in add_entry()
134 if (bp->type == type && bp->hash == hash) in add_entry()
136 if (bp == NULL) { in add_entry()
137 bp = app_malloc(sizeof(*bp), "hash bucket"); in add_entry()
138 *bp = nilbucket; in add_entry()
140 bp->type = type; in add_entry()
141 bp->hash = hash; in add_entry()
188 bp->num_needed++; in add_entry()
348 BUCKET *bp, *nextbp; in do_dir() local
[all …]
/openssl/crypto/rsa/
H A Drsa_ameth.c208 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
224 if (BIO_puts(bp, "\n") <= 0) in rsa_pss_param_print()
228 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
240 if (BIO_puts(bp, "\n") <= 0) in rsa_pss_param_print()
243 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
263 BIO_puts(bp, "\n"); in rsa_pss_param_print()
265 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
275 BIO_puts(bp, "\n"); in rsa_pss_param_print()
277 if (!BIO_indent(bp, indent, 128)) in rsa_pss_param_print()
287 BIO_puts(bp, "\n"); in rsa_pss_param_print()
[all …]
/openssl/crypto/bn/asm/
H A Dia64-mont.pl83 // const BN_ULONG *bp,const BN_ULONG *np,
132 { .mmi; ldf8 bi=[bptr],8 // (*bp++)
151 xmpy.hu ahi[2]=alo[4],bi // ap[0]*bp[0]
158 xma.hu ahi[1]=alo[3],bi,ahi[2] // ap[1]*bp[0]
167 xmpy.lu m0=alo[4],n0 // (ap[0]*bp[0])*n0
213 { .mmi; ldf8 bi=[bptr],8 // (*bp++)
220 xma.hu ahi[2]=alo[4],bi,ahi[3] // ap[0]*bp[i]+tp[0]
227 xma.hu ahi[1]=alo[3],bi,ahi[2] // ap[1]*bp[i]
237 xmpy.lu m0=alo[4],n0 // (ap[0]*bp[i]+tp[0])*n0
H A Ds390x-mont.pl101 la $bp,0($num,$bp)
128 la $bp,0($j,$bp) # restore $bp
133 lg $bi,0($bp)
137 mlgr $ahi,$bi # ap[0]*bp[0]
157 mlgr $ahi,$bi # ap[j]*bp[0]
180 la $bp,8($bp) # bp++
183 lg $bi,0($bp) # bp[i]
187 mlgr $ahi,$bi # ap[0]*bp[i]
209 mlgr $ahi,$bi # ap[j]*bp[i]
238 la $bp,8($bp) # bp++
[all …]
H A Dvis3-mont.pl53 $bp="%o2"; # const BN_ULONG *bp,
100 ld [$bp+0], $t2 ! m0=bp[0]
102 ld [$bp+4], $t3
104 add $bp, 8, $bp
118 mulx $aj, $m0, $lo0 ! ap[0]*bp[0]
136 mulx $aj, $m0, $alo ! ap[1]*bp[0]
175 mulx $aj, $m0, $alo ! ap[j]*bp[0]
211 ld [$bp+0], $t2 ! m0=bp[i]
212 ld [$bp+4], $t3
218 add $bp, 8, $bp
[all …]
/openssl/crypto/bio/
H A Dbss_log.c85 static void xcloselog(BIO *bp);
232 static int slg_puts(BIO *bp, const char *str) in slg_puts() argument
237 ret = slg_write(bp, str, n); in slg_puts()
248 bp->ptr = NULL; in xopenlog()
257 if (bp->ptr == NULL) in xsyslog()
291 static void xcloselog(BIO *bp) in xcloselog() argument
293 if (bp->ptr) in xcloselog()
294 DeregisterEventSource((HANDLE) (bp->ptr)); in xcloselog()
295 bp->ptr = NULL; in xcloselog()
385 static void xcloselog(BIO *bp) in xcloselog() argument
[all …]
/openssl/crypto/ec/
H A Deck_prn.c70 int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off) in ECPKParameters_print() argument
101 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print()
107 if (BIO_printf(bp, "ASN1 OID: %s", OBJ_nid2sn(nid)) <= 0) in ECPKParameters_print()
109 if (BIO_printf(bp, "\n") <= 0) in ECPKParameters_print()
113 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print()
115 if (BIO_printf(bp, "NIST CURVE: %s\n", nname) <= 0) in ECPKParameters_print()
161 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print()
165 if (BIO_printf(bp, "Field Type: %s\n", OBJ_nid2sn(tmp_nid)) in ECPKParameters_print()
175 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print()
178 if (BIO_printf(bp, "Basis Type: %s\n", in ECPKParameters_print()
[all …]

Completed in 102 milliseconds

1234567