Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 136) sorted by relevance

123456

/openssl-master/crypto/aes/asm/
A Dvpaes-x86.pl762 &and ($base,-16);
767 &mov ($base,$round);
768 &shr ($base,5);
769 &add ($base,5);
786 &and ($base,-16);
792 &shr ($base,5);
793 &add ($base,5);
795 &shl ($base,4);
819 &and ($base,-16);
838 &and ($base,-16);
[all …]
/openssl-master/crypto/x509/
A Dv3_ncons.c577 if (base->modified && i2d_X509_NAME(base, NULL) < 0) in nc_dn()
581 if (memcmp(base->canon_enc, nm->canon_enc, base->canon_enclen)) in nc_dn()
592 if (base->length == 0) in nc_dns()
595 if (dns->length < base->length) in nc_dns()
602 if (dns->length > base->length) { in nc_dns()
634 if (base->length > 0 && memchr(base->data, 0, base->length) != NULL) in nc_email_eai()
638 baseptr = OPENSSL_strndup((char *)base->data, base->length); in nc_email_eai()
775 if (hostlen > base->length) { in nc_uri()
797 baseptr = base->data; in nc_ip()
798 baselen = base->length; in nc_ip()
[all …]
/openssl-master/include/openssl/
A Dobjects.h77 const void *OBJ_bsearch_(const void *key, const void *base, int num, int size,
79 const void *OBJ_bsearch_ex_(const void *key, const void *base, int num,
87 scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
92 type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
128 static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
130 return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \
142 type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
144 return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \
149 # define OBJ_bsearch(type1,key,type2,base,num,cmp) \ argument
150 ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \
[all …]
/openssl-master/crypto/encode_decode/
A Ddecoder_meth.c38 decoder->base.refcnt = 1; in ossl_decoder_new()
47 CRYPTO_UP_REF(&decoder->base.refcnt, &ref, decoder->base.lock); in OSSL_DECODER_up_ref()
58 CRYPTO_DOWN_REF(&decoder->base.refcnt, &ref, decoder->base.lock); in OSSL_DECODER_free()
61 OPENSSL_free(decoder->base.name); in OSSL_DECODER_free()
207 decoder->base.id = id; in ossl_decoder_from_algorithm()
212 decoder->base.algodef = algodef; in ossl_decoder_from_algorithm()
213 decoder->base.parsed_propdef in ossl_decoder_from_algorithm()
279 decoder->base.prov = prov; in ossl_decoder_from_algorithm()
458 return decoder->base.prov; in OSSL_DECODER_get0_provider()
489 return decoder->base.id; in ossl_decoder_get_number()
[all …]
A Dencoder_meth.c38 encoder->base.refcnt = 1; in ossl_encoder_new()
47 CRYPTO_UP_REF(&encoder->base.refcnt, &ref, encoder->base.lock); in OSSL_ENCODER_up_ref()
58 CRYPTO_DOWN_REF(&encoder->base.refcnt, &ref, encoder->base.lock); in OSSL_ENCODER_free()
61 OPENSSL_free(encoder->base.name); in OSSL_ENCODER_free()
207 encoder->base.id = id; in encoder_from_algorithm()
212 encoder->base.algodef = algodef; in encoder_from_algorithm()
213 encoder->base.parsed_propdef in encoder_from_algorithm()
289 encoder->base.prov = prov; in encoder_from_algorithm()
467 return encoder->base.prov; in OSSL_ENCODER_get0_provider()
498 return encoder->base.id; in ossl_encoder_get_number()
[all …]
/openssl-master/providers/implementations/ciphers/
A Dcipher_aes_ocb.c84 if (ctx->base.enc) { in aes_generic_ocb_cipher()
115 ctx->base.enc = enc; in aes_ocb_init()
124 ctx->base.ivlen = ivlen; in aes_ocb_init()
135 if (!ctx->base.hw->init(&ctx->base, key, keylen)) in aes_ocb_init()
223 if (!aes_generic_ocb_setiv(ctx, ctx->base.iv, ctx->base.ivlen, in update_iv()
290 if (ctx->base.enc) { in aes_ocb_block_final()
390 ctx->base.ivlen = sz; in aes_ocb_set_ctx_params()
437 if (!OSSL_PARAM_set_octet_string(p, ctx->base.oiv, ctx->base.ivlen) in aes_ocb_get_ctx_params()
438 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.oiv, ctx->base.ivlen)) { in aes_ocb_get_ctx_params()
449 if (!OSSL_PARAM_set_octet_string(p, ctx->base.iv, ctx->base.ivlen) in aes_ocb_get_ctx_params()
[all …]
A Dcipher_aes_cbc_hmac_sha.c192 if (ctx->base.keylen != keylen) { in aes_set_ctx_params()
200 if (!OSSL_PARAM_get_uint(p, &ctx->base.tlsversion)) { in aes_set_ctx_params()
204 if (ctx->base.tlsversion == SSL3_VERSION in aes_set_ctx_params()
205 || ctx->base.tlsversion == TLS1_VERSION) { in aes_set_ctx_params()
214 ctx->base.removetlsfixed -= AES_BLOCK_SIZE; in aes_set_ctx_params()
274 && !OSSL_PARAM_set_octet_string(p, ctx->base.oiv, ctx->base.ivlen) in aes_get_ctx_params()
275 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.oiv, ctx->base.ivlen)) { in aes_get_ctx_params()
281 && !OSSL_PARAM_set_octet_string(p, ctx->base.iv, ctx->base.ivlen) in aes_get_ctx_params()
282 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.iv, ctx->base.ivlen)) { in aes_get_ctx_params()
316 &meths->base, provctx); in base_init()
[all …]
A Dcipher_rc4_hmac_md5.c31 #define GET_HW(ctx) ((PROV_CIPHER_HW_RC4_HMAC_MD5 *)ctx->base.hw)
110 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.keylen)) { in rc4_hmac_md5_get_ctx_params()
116 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.ivlen)) { in rc4_hmac_md5_get_ctx_params()
155 if (ctx->base.keylen != sz) { in rc4_hmac_md5_set_ctx_params()
167 if (ctx->base.ivlen != sz) { in rc4_hmac_md5_set_ctx_params()
179 sz = GET_HW(ctx)->tls_init(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
192 GET_HW(ctx)->init_mackey(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
196 if (!OSSL_PARAM_get_uint(p, &ctx->base.tlsversion)) { in rc4_hmac_md5_set_ctx_params()
A Dcipher_aes_xts.c73 PROV_CIPHER_CTX *ctx = &xctx->base; in aes_xts_init()
117 ossl_cipher_generic_initkey(&ctx->base, kbits, blkbits, ivbits, mode, in aes_xts_newctx()
153 in->base.hw->copyctx(&ret->base, &in->base); in aes_xts_dupctx()
165 || !ctx->base.iv_set in aes_xts_cipher()
183 (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, ctx->base.iv); in aes_xts_cipher()
184 else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, in aes_xts_cipher()
185 ctx->base.enc)) in aes_xts_cipher()
A Dcipher_rc2.c140 ctx->base.iv, ctx->base.ivlen)) { in rc2_get_ctx_params()
188 || ctx->base.ivlen > sizeof(iv) in rc2_set_ctx_params()
191 ctx->base.ivlen) in rc2_set_ctx_params()
192 != ctx->base.ivlen) in rc2_set_ctx_params()
193 || !ossl_cipher_generic_initiv(&ctx->base, iv, ctx->base.ivlen) in rc2_set_ctx_params()
206 ctx->base.keylen = ctx->key_bits / 8; in rc2_set_ctx_params()
A Dcipher_sm4.c40 in->base.hw->copyctx(&ret->base, &in->base); in sm4_dupctx()
A Dcipher_chacha20.h14 PROV_CIPHER_CTX base; /* must be first */ member
25 PROV_CIPHER_HW base; /* must be first */ member
A Dcipher_chacha20_poly1305.c48 ossl_cipher_generic_initkey(&ctx->base, CHACHA20_POLY1305_KEYLEN * 8, in chacha20_poly1305_newctx()
115 if (!ctx->base.enc) { in chacha20_poly1305_get_ctx_params()
150 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->base.hw; in chacha20_poly1305_set_ctx_params()
190 if (ctx->base.enc) { in chacha20_poly1305_set_ctx_params()
205 len = hw->tls_init(&ctx->base, p->data, p->data_size); in chacha20_poly1305_set_ctx_params()
219 if (hw->tls_iv_set_fixed(&ctx->base, p->data, p->data_size) == 0) { in chacha20_poly1305_set_ctx_params()
A Dcipher_rc4_hmac_md5.h15 PROV_CIPHER_CTX base; /* Must be first */ member
26 PROV_CIPHER_HW base; /* Must be first */ member
A Dcipher_camellia.c46 in->base.hw->copyctx(&ret->base, &in->base); in camellia_dupctx()
A Dcipher_aes.c47 in->base.hw->copyctx(&ret->base, &in->base); in aes_dupctx()
A Dcipher_aria.c40 in->base.hw->copyctx(&ret->base, &in->base); in aria_dupctx()
/openssl-master/crypto/
A Dpunycode.c16 static const unsigned int base = 36; variable
51 while (delta > ((base - tmin) * tmax) / 2) { in adapt()
52 delta = delta / (base - tmin); in adapt()
53 k = k + base; in adapt()
56 return k + (((base - tmin + 1) * delta) / (delta + skew)); in adapt()
155 for (k = base;; k += base) { in ossl_punycode_decode()
173 if (w > maxint / (base - t)) in ossl_punycode_decode()
175 w = w * (base - t); in ossl_punycode_decode()
A Dcpuid.c66 unsigned int digit, base = 10; in ossl_strtouint64() local
69 base = 8, str++; in ossl_strtouint64()
71 base = 16, str++; in ossl_strtouint64()
74 while ((digit = todigit(*str++)) < base) in ossl_strtouint64()
75 ret = ret * base + digit; in ossl_strtouint64()
A Dbsearch.c13 const void *ossl_bsearch(const void *key, const void *base, int num, in ossl_bsearch() argument
17 const char *base_ = base; in ossl_bsearch()
/openssl-master/crypto/objects/
A DREADME.md13 for the base name in C. Otherwise, the shortName is used.
15 The base name (let's call it 'base') will then be used to
18 Note that if the base name contains spaces, dashes or periods,
30 This makes sure that the name foo will be used as base name
39 to the base name. !global turns this off. This construction
/openssl-master/doc/man7/
A DOSSL_PROVIDER-base.pod5 OSSL_PROVIDER-base - OpenSSL base provider
9 The OpenSSL base provider supplies the encoding for OpenSSL's
19 =item "provider=base"
58 The OpenSSL base provider supports these operations and algorithms:
62 In addition to "provider=base", some of these encoders define the
/openssl-master/crypto/perlasm/
A Dx86gas.pl212 { my($dst,$sym,$base,$reflabel)=@_;
215 { if (!defined($base))
219 $base=$dst;
224 &::mov($dst,&::DWP("$indirect-$reflabel",$base));
228 { &::lea($dst,&::DWP("$sym-$reflabel",$base)); }
231 $base));
/openssl-master/test/
A Dprovider_test.c45 OSSL_PROVIDER *deflt = NULL, *base = NULL; in test_provider() local
62 if (!TEST_ptr(base = OSSL_PROVIDER_load(*libctx, "base"))) in test_provider()
132 if (!TEST_true(OSSL_PROVIDER_unload(base))) in test_provider()
134 base = NULL; in test_provider()
150 OSSL_PROVIDER_unload(base); in test_provider()
/openssl-master/crypto/bn/
A Dbn_rsa_fips186_4.c253 BIGNUM *base, *range; in ossl_bn_rsa_fips186_4_derive_prime() local
257 base = BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_derive_prime()
282 if (!BN_lshift(base, &ossl_bn_inv_sqrt_2, in ossl_bn_rsa_fips186_4_derive_prime()
285 || !BN_sub(range, range, base)) in ossl_bn_rsa_fips186_4_derive_prime()
313 if (!BN_priv_rand_range_ex(X, range, 0, ctx) || !BN_add(X, X, base)) in ossl_bn_rsa_fips186_4_derive_prime()

Completed in 40 milliseconds

123456