Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 53) sorted by relevance

123

/include/internal/
A Dconstant_time.h105 return 0 - (a >> (sizeof(a) * 8 - 1)); in constant_time_msb()
121 return 0 - (a >> (sizeof(a) * 8 - 1)); in constant_time_msb_s()
127 return constant_time_msb(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt()
132 return constant_time_msb_s(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_s()
143 return constant_time_msb_32(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_32()
148 return constant_time_msb_64(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_64()
165 return 0 - (a >> (sizeof(a) * 8 - 1)); in constant_time_msb_bn()
170 return constant_time_msb_bn(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_bn()
175 return constant_time_msb_bn(~a & (a - 1)); in constant_time_is_zero_bn()
216 return constant_time_msb(~a & (a - 1)); in constant_time_is_zero()
[all …]
A Dsafe_math.h35 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \
41 if (!__builtin_add_overflow(a, b, &r)) \
44 return a < 0 ? min : max; \
48 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \
54 if (!__builtin_add_overflow(a, b, &r)) \
62 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \
67 || (a > 0 && b <= max - a) \
68 || (a < 0 && b >= min - a) \
173 const type x = a < 0 ? -a : a; \
285 return a < 0 ? -a : a; \
[all …]
A Dquic_types.h59 static ossl_unused ossl_inline QUIC_PN ossl_quic_pn_max(QUIC_PN a, QUIC_PN b) in ossl_quic_pn_max() argument
61 return a > b ? a : b; in ossl_quic_pn_max()
64 static ossl_unused ossl_inline QUIC_PN ossl_quic_pn_min(QUIC_PN a, QUIC_PN b) in ossl_quic_pn_min() argument
66 return a < b ? a : b; in ossl_quic_pn_min()
82 static ossl_unused ossl_inline int ossl_quic_conn_id_eq(const QUIC_CONN_ID *a, in ossl_quic_conn_id_eq() argument
85 if (a->id_len != b->id_len || a->id_len > QUIC_MAX_CONN_ID_LEN) in ossl_quic_conn_id_eq()
87 return memcmp(a->id, b->id, a->id_len) == 0; in ossl_quic_conn_id_eq()
A Dtime.h148 int ossl_time_compare(OSSL_TIME a, OSSL_TIME b) in ossl_time_compare() argument
150 if (a.t > b.t) in ossl_time_compare()
152 if (a.t < b.t) in ossl_time_compare()
177 r.t = safe_add_time(a.t, b.t, &err); in ossl_time_add()
187 r.t = safe_sub_time(a.t, b.t, &err); in ossl_time_subtract()
195 return a.t > b.t ? ossl_time_subtract(a, b) in ossl_time_abs_difference()
205 r.t = safe_mul_time(a.t, b, &err); in ossl_time_multiply()
215 r.t = safe_div_time(a.t, b, &err); in ossl_time_divide()
225 r.t = safe_muldiv_time(a.t, b, c, &err); in ossl_time_muldiv()
233 return a.t > b.t ? a : b; in ossl_time_max()
[all …]
A Dsockets.h184 # define ioctlsocket(a,b,c) ioctl(a,b,c) argument
189 # define ioctlsocket(a,b,c) ioctl((a),(b),(int)(c)) argument
196 # define ioctlsocket(a,b,c) ioctl(a,b,c) argument
199 # define ioctlsocket(a,b,c) ioctl(a,b,c) argument
207 # define openssl_fdset(a, b) FD_SET((unsigned int)(a), b) argument
209 # define openssl_fdset(a, b) FD_SET(a, b) argument
A De_os.h247 # define sleep(a) taskDelay((a) * sysClkRateGet()) argument
267 # define ioctlsocket(a,b,c) ioctl(a,b,c) argument
288 # define getpid(a) nssgetpid(a) argument
313 # define accept(a,b,c) accept(a,(struct sockaddr *)b,c) argument
314 # define recvfrom(a,b,c,d,e,f) recvfrom(a,b,(socklen_t)c,d,e,f) argument
/include/openssl/
A Dts.h75 TS_REQ *d2i_TS_REQ_fp(FILE *fp, TS_REQ **a);
76 int i2d_TS_REQ_fp(FILE *fp, const TS_REQ *a);
78 TS_REQ *d2i_TS_REQ_bio(BIO *fp, TS_REQ **a);
79 int i2d_TS_REQ_bio(BIO *fp, const TS_REQ *a);
124 long TS_REQ_get_version(const TS_REQ *a);
151 int TS_REQ_get_cert_req(const TS_REQ *a);
154 void TS_REQ_ext_free(TS_REQ *a);
155 int TS_REQ_get_ext_count(TS_REQ *a);
166 int TS_REQ_print_bio(BIO *bio, TS_REQ *a);
175 PKCS7 *TS_RESP_get_token(TS_RESP *a);
[all …]
A Dbn.h189 # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) argument
193 int BN_is_one(const BIGNUM *a);
197 # define BN_one(a) (BN_set_word((a),1)) argument
199 void BN_zero_ex(BIGNUM *a);
202 # define BN_zero(a) BN_zero_ex(a) argument
204 # define BN_zero(a) (BN_set_word((a),0)) argument
240 void BN_clear_free(BIGNUM *a);
305 void BN_free(BIGNUM *a);
339 void BN_clear(BIGNUM *a);
480 # define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b) argument
[all …]
A Dui.h.in49 * everything is fine, they return 0, a positive value or a non-NULL pointer,
82 All of the functions in this group take a UI and a prompt string.
84 a buffer for the result to end up with, a minimum input size and a maximum
90 a dialog box with an OK button and a Cancel button), a string of acceptable
151 * (which might be a card name or a file name) or NULL.
155 * If the ui_method doesn't contain a pointer to a user-defined prompt
251 a channel to a tty, or by opening a window.
253 maybe to the tty, maybe as a field label in a
258 a reader This function is called to read a given prompt,
259 maybe from the tty, maybe from a field in a
[all …]
A Dct.h.in145 * Creates a new, blank SCT.
170 void SCT_LIST_free(STACK_OF(SCT) *a);
210 * This makes a copy of the log_id.
256 * This takes a copy of the ext.
348 * "a" must not be NULL.
362 * If "a" or "*a" is NULL, a new stack will be created that the caller is
375 * "a" must not be NULL.
389 * If "a" or "*a" is NULL, a new stack will be created that the caller is
403 * If |out| points to a null pointer, a string will be allocated to hold the
415 * |in| should be a pointer to a string containing the TLS-format SCT.
[all …]
A Dobjects.h50 # define OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c) argument
72 int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);
76 int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);
124 type1 const *a = a_; \
126 return nm##_cmp(a,b); \
138 type1 const *a = a_; \
140 return nm##_cmp(a,b); \
A Dasn1.h.in140 * This indicates that the ASN1_STRING is not a real value but just a place
282 attr void name##_free(type *a);
292 attr type *name##_dup(const type *a);
341 * pointer in a structure.
517 /* This is used to contain a list of bit names */
556 int ASN1_TYPE_get(const ASN1_TYPE *a);
571 void ASN1_STRING_free(ASN1_STRING *a);
572 void ASN1_STRING_clear_free(ASN1_STRING *a);
619 int ASN1_UTCTIME_check(const ASN1_UTCTIME *a);
710 int ASN1_INTEGER_set(ASN1_INTEGER *a, long v);
[all …]
A Dasn1t.h.in47 * Otherwise templates must contain a single
63 * The EXTERN type uses a new style d2i/i2d.
72 * has a special meaning, it is used as a mask
135 /* This is a ASN1 type which just embeds a template */
145 * for a structure called stname.
155 * a structure called stname.
526 /* Field is a SET OF */
529 /* Field is a SEQUENCE OF */
688 * a few points. If the callback returns zero then it is assumed a fatal
732 /* Use a reference count */
[all …]
A Dfipskey.h.in7 * this file except in compliance with the License. You can obtain a copy
27 * The FIPS validation key, as a string.
32 * The FIPS provider vendor name, as a string.
A Dsafestack.h.in7 * this file except in compliance with the License. You can obtain a copy
39 typedef int (*sk_##t1##_compfunc)(const t3 * const *a, const t3 *const *b); \
40 typedef void (*sk_##t1##_freefunc)(t3 *a); \
41 typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \
75 typedef void (*sk_##t1##_freefunc)(t3 *a); \
76 typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \
208 * Strings are special: normally an lhash entry will point to a single
211 * a) Instead of a single char, there is an array of chars, NUL-terminated.
217 * In practice, however, it appears to be hard to have a const
218 * string. For now, I'm settling for dealing with the fact it is a
[all …]
A Dx509_acert.h.in7 * this file except in compliance with the License. You can obtain a copy
50 int X509_ACERT_verify(X509_ACERT *a, EVP_PKEY *r);
145 OSSL_IETF_ATTR_SYNTAX_get0_policyAuthority(const OSSL_IETF_ATTR_SYNTAX *a);
146 void OSSL_IETF_ATTR_SYNTAX_set0_policyAuthority(OSSL_IETF_ATTR_SYNTAX *a,
149 int OSSL_IETF_ATTR_SYNTAX_get_value_num(const OSSL_IETF_ATTR_SYNTAX *a);
150 void *OSSL_IETF_ATTR_SYNTAX_get0_value(const OSSL_IETF_ATTR_SYNTAX *a,
152 int OSSL_IETF_ATTR_SYNTAX_add1_value(OSSL_IETF_ATTR_SYNTAX *a, int type,
154 int OSSL_IETF_ATTR_SYNTAX_print(BIO *bp, OSSL_IETF_ATTR_SYNTAX *a, int indent);
A Dpkcs7.h.in7 * this file except in compliance with the License. You can obtain a copy
184 # define PKCS7_type_is_signed(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_signed) argument
185 # define PKCS7_type_is_encrypted(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypted) argument
186 # define PKCS7_type_is_enveloped(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_enveloped) argument
187 # define PKCS7_type_is_signedAndEnveloped(a) \ argument
188 (OBJ_obj2nid((a)->type) == NID_pkcs7_signedAndEnveloped)
189 # define PKCS7_type_is_data(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_data) argument
190 # define PKCS7_type_is_digest(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_digest) argument
A Dx509.h.in312 # define X509_REQ_extract_key(a) X509_REQ_get_pubkey(a) argument
313 # define X509_name_cmp(a,b) X509_NAME_cmp((a),(b)) argument
333 int X509_verify(X509 *a, EVP_PKEY *r);
338 int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r);
339 int X509_CRL_verify(X509_CRL *a, EVP_PKEY *r);
617 void X509_PKEY_free(X509_PKEY *a);
624 void X509_INFO_free(X509_INFO *a);
664 X509_NAME *X509_get_issuer_name(const X509 *a);
794 unsigned long X509_issuer_name_hash(X509 *a);
812 int X509_cmp(const X509 *a, const X509 *b);
[all …]
/include/crypto/
A Dbn.h17 BIGNUM *bn_wexpand(BIGNUM *a, int words);
18 BIGNUM *bn_expand2(BIGNUM *a, int words);
20 void bn_correct_top(BIGNUM *a);
32 int bn_get_top(const BIGNUM *a);
34 int bn_get_dmax(const BIGNUM *a);
37 void bn_set_all_zero(BIGNUM *a);
45 BN_ULONG *bn_get_words(const BIGNUM *a);
88 int bn_sqr_fixed_top(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
89 int bn_lshift_fixed_top(BIGNUM *r, const BIGNUM *a, int n);
90 int bn_rshift_fixed_top(BIGNUM *r, const BIGNUM *a, int n);
[all …]
A Dx509.h344 int ossl_i2d_RSA_PSS_PUBKEY(const RSA *a, unsigned char **pp);
350 int ossl_i2d_DH_PUBKEY(const DH *a, unsigned char **pp);
352 int ossl_i2d_DHx_PUBKEY(const DH *a, unsigned char **pp);
355 ECX_KEY *ossl_d2i_ED25519_PUBKEY(ECX_KEY **a,
357 int ossl_i2d_ED25519_PUBKEY(const ECX_KEY *a, unsigned char **pp);
358 ECX_KEY *ossl_d2i_ED448_PUBKEY(ECX_KEY **a,
360 int ossl_i2d_ED448_PUBKEY(const ECX_KEY *a, unsigned char **pp);
361 ECX_KEY *ossl_d2i_X25519_PUBKEY(ECX_KEY **a,
363 int ossl_i2d_X25519_PUBKEY(const ECX_KEY *a, unsigned char **pp);
364 ECX_KEY *ossl_d2i_X448_PUBKEY(ECX_KEY **a,
[all …]
A Dlms_util.h23 #define HASH_NOT_MATCHED(a, b) \ argument
24 (a)->n != (b)->n || (strcmp((a)->digestname, (b)->digestname) != 0)
A Driscv_arch.def5 * this file except in compliance with the License. You can obtain a copy
13 * Each RISC-V capability ends up encoded as a single set bit in an array of
14 * words. When specifying a new capability, write a new RISCV_DEFINE_CAP
23 * When there is no hwprobe key/value pair for a capability, the key is set to -1
24 * and the value is set to 0, as when the hwprobe syscall returns a key of -1,
A Dasn1.h31 int (*pub_cmp) (const EVP_PKEY *a, const EVP_PKEY *b);
46 int (*param_cmp) (const EVP_PKEY *a, const EVP_PKEY *b);
60 const X509_ALGOR *a, const ASN1_BIT_STRING *sig,
134 int ossl_asn1_type_set_octetstring_int(ASN1_TYPE *a, long num,
136 int ossl_asn1_type_get_octetstring_int(const ASN1_TYPE *a, long *num,
145 EVP_PKEY *ossl_d2i_PrivateKey_legacy(int keytype, EVP_PKEY **a,
A Dmodes.h177 u64 a[2]; member
181 ( (out)->a[0]=(in1)->a[0]^(in2)->a[0], \
182 (out)->a[1]=(in1)->a[1]^(in2)->a[1] )
A Ddso_conf.h.in6 * this file except in compliance with the License. You can obtain a copy
16 # applications will have to worry about that from a compilation point
19 # by a define "DSO_<name>" ... we translate the "dso_scheme" config

Completed in 40 milliseconds

123