/openssl-master/crypto/aes/asm/ |
A D | vpaes-x86.pl | 762 &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 D | v3_ncons.c | 577 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 D | objects.h | 77 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 D | decoder_meth.c | 38 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 D | encoder_meth.c | 38 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 D | cipher_aes_ocb.c | 84 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 D | cipher_aes_cbc_hmac_sha.c | 192 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 D | cipher_rc4_hmac_md5.c | 31 #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 D | cipher_aes_xts.c | 73 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 D | cipher_rc2.c | 140 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 D | cipher_sm4.c | 40 in->base.hw->copyctx(&ret->base, &in->base); in sm4_dupctx()
|
A D | cipher_chacha20.h | 14 PROV_CIPHER_CTX base; /* must be first */ member 25 PROV_CIPHER_HW base; /* must be first */ member
|
A D | cipher_chacha20_poly1305.c | 48 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 D | cipher_rc4_hmac_md5.h | 15 PROV_CIPHER_CTX base; /* Must be first */ member 26 PROV_CIPHER_HW base; /* Must be first */ member
|
A D | cipher_camellia.c | 46 in->base.hw->copyctx(&ret->base, &in->base); in camellia_dupctx()
|
A D | cipher_aes.c | 47 in->base.hw->copyctx(&ret->base, &in->base); in aes_dupctx()
|
A D | cipher_aria.c | 40 in->base.hw->copyctx(&ret->base, &in->base); in aria_dupctx()
|
/openssl-master/crypto/ |
A D | punycode.c | 16 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 D | cpuid.c | 66 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 D | bsearch.c | 13 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 D | README.md | 13 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 D | OSSL_PROVIDER-base.pod | 5 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 D | x86gas.pl | 212 { 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 D | provider_test.c | 45 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 D | bn_rsa_fips186_4.c | 253 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()
|