/openssl/crypto/aes/asm/ |
H 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/crypto/x509/ |
H A D | v3_ncons.c | 620 if (base->modified && i2d_X509_NAME(base, NULL) < 0) in nc_dn() 624 if (memcmp(base->canon_enc, nm->canon_enc, base->canon_enclen)) in nc_dn() 635 if (base->length == 0) in nc_dns() 638 if (dns->length < base->length) in nc_dns() 645 if (dns->length > base->length) { in nc_dns() 677 if (base->length > 0 && memchr(base->data, 0, base->length) != NULL) in nc_email_eai() 681 baseptr = OPENSSL_strndup((char *)base->data, base->length); in nc_email_eai() 816 if (hostlen > base->length) { in nc_uri() 838 baseptr = base->data; in nc_ip() 839 baselen = base->length; in nc_ip() [all …]
|
/openssl/include/openssl/ |
H 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/providers/implementations/ciphers/ |
H 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() 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() 376 if (ctx->base.enc) { in aes_ocb_set_ctx_params() 397 ctx->base.ivlen = sz; in aes_ocb_set_ctx_params() 446 if (!OSSL_PARAM_set_octet_string(p, ctx->base.oiv, ctx->base.ivlen) in aes_ocb_get_ctx_params() 447 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.oiv, ctx->base.ivlen)) { in aes_ocb_get_ctx_params() 458 if (!OSSL_PARAM_set_octet_string(p, ctx->base.iv, ctx->base.ivlen) in aes_ocb_get_ctx_params() [all …]
|
H A D | cipher_sm4_xts.c | 41 PROV_CIPHER_CTX *ctx = &xctx->base; in sm4_xts_init() 83 ossl_cipher_generic_initkey(&ctx->base, kbits, blkbits, ivbits, mode, in sm4_xts_newctx() 117 in->base.hw->copyctx(&ret->base, &in->base); in sm4_xts_dupctx() 129 || !ctx->base.iv_set in sm4_xts_cipher() 148 ctx->base.iv, ctx->base.enc); in sm4_xts_cipher() 149 else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, in sm4_xts_cipher() 150 ctx->base.enc)) in sm4_xts_cipher() 155 ctx->base.iv, ctx->base.enc); in sm4_xts_cipher() 156 else if (ossl_crypto_xts128gb_encrypt(&ctx->xts, ctx->base.iv, in, out, in sm4_xts_cipher() 157 inl, ctx->base.enc)) in sm4_xts_cipher()
|
H 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 …]
|
H A D | cipher_chacha20_poly1305.c | 48 ossl_cipher_generic_initkey(&ctx->base, CHACHA20_POLY1305_KEYLEN * 8, in chacha20_poly1305_newctx() 70 if (dctx != NULL && dctx->base.tlsmac != NULL && dctx->base.alloced) { in chacha20_poly1305_dupctx() 71 dctx->base.tlsmac = OPENSSL_memdup(dctx->base.tlsmac, in chacha20_poly1305_dupctx() 72 dctx->base.tlsmacsize); in chacha20_poly1305_dupctx() 73 if (dctx->base.tlsmac == NULL) { in chacha20_poly1305_dupctx() 133 if (!ctx->base.enc) { in chacha20_poly1305_get_ctx_params() 168 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->base.hw; in chacha20_poly1305_set_ctx_params() 207 if (ctx->base.enc) { in chacha20_poly1305_set_ctx_params() 222 len = hw->tls_init(&ctx->base, p->data, p->data_size); in chacha20_poly1305_set_ctx_params() 236 if (hw->tls_iv_set_fixed(&ctx->base, p->data, p->data_size) == 0) { in chacha20_poly1305_set_ctx_params()
|
H A D | cipher_rc4_hmac_md5.c | 31 #define GET_HW(ctx) ((PROV_CIPHER_HW_RC4_HMAC_MD5 *)ctx->base.hw) 120 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.keylen)) { in rc4_hmac_md5_get_ctx_params() 126 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.ivlen)) { in rc4_hmac_md5_get_ctx_params() 165 if (ctx->base.keylen != sz) { in rc4_hmac_md5_set_ctx_params() 177 if (ctx->base.ivlen != sz) { in rc4_hmac_md5_set_ctx_params() 189 sz = GET_HW(ctx)->tls_init(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params() 202 GET_HW(ctx)->init_mackey(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params() 206 if (!OSSL_PARAM_get_uint(p, &ctx->base.tlsversion)) { in rc4_hmac_md5_set_ctx_params()
|
H A D | cipher_aes_xts.c | 77 PROV_CIPHER_CTX *ctx = &xctx->base; in aes_xts_init() 133 ossl_cipher_generic_initkey(&ctx->base, kbits, blkbits, ivbits, mode, in aes_xts_newctx() 172 in->base.hw->copyctx(&ret->base, &in->base); in aes_xts_dupctx() 189 || !ctx->base.iv_set in aes_xts_cipher() 207 (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, ctx->base.iv); in aes_xts_cipher() 208 else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, in aes_xts_cipher() 209 ctx->base.enc)) in aes_xts_cipher()
|
H A D | cipher_chacha20.c | 75 if (dupctx != NULL && dupctx->base.tlsmac != NULL && dupctx->base.alloced) { in chacha20_dupctx() 76 dupctx->base.tlsmac = OPENSSL_memdup(dupctx->base.tlsmac, in chacha20_dupctx() 77 dupctx->base.tlsmacsize); in chacha20_dupctx() 78 if (dupctx->base.tlsmac == NULL) { in chacha20_dupctx()
|
H A D | cipher_rc2.c | 142 ctx->base.iv, ctx->base.ivlen)) { in rc2_get_ctx_params() 200 || ctx->base.ivlen > sizeof(iv) in rc2_set_ctx_params() 203 ctx->base.ivlen) in rc2_set_ctx_params() 204 != ctx->base.ivlen) in rc2_set_ctx_params() 205 || !ossl_cipher_generic_initiv(&ctx->base, iv, ctx->base.ivlen) in rc2_set_ctx_params() 218 ctx->base.keylen = ctx->key_bits / 8; in rc2_set_ctx_params()
|
H A D | cipher_sm4_gcm.c | 27 ossl_gcm_initctx(provctx, &ctx->base, keybits, in sm4_gcm_newctx() 41 if (dctx != NULL && dctx->base.gcm.key != NULL) in sm4_gcm_dupctx() 42 dctx->base.gcm.key = &dctx->ks.ks; in sm4_gcm_dupctx()
|
H A D | cipher_sm4_ccm.c | 27 ossl_ccm_initctx(&ctx->base, keybits, ossl_prov_sm4_hw_ccm(keybits)); in sm4_ccm_newctx() 40 if (dctx != NULL && dctx->base.ccm_ctx.key != NULL) in sm4_ccm_dupctx() 41 dctx->base.ccm_ctx.key = &dctx->ks.ks; in sm4_ccm_dupctx()
|
H A D | cipher_sm4.c | 38 in->base.hw->copyctx(&ret->base, &in->base); in sm4_dupctx()
|
H A D | cipher_aria_ccm.c | 27 ossl_ccm_initctx(&ctx->base, keybits, ossl_prov_aria_hw_ccm(keybits)); in aria_ccm_newctx() 40 if (dctx != NULL && dctx->base.ccm_ctx.key != NULL) in aria_ccm_dupctx() 41 dctx->base.ccm_ctx.key = &dctx->ks.ks; in aria_ccm_dupctx()
|
H A D | cipher_aria_gcm.c | 25 ossl_gcm_initctx(provctx, &ctx->base, keybits, in aria_gcm_newctx() 39 if (dctx != NULL && dctx->base.gcm.key != NULL) in aria_gcm_dupctx() 40 dctx->base.gcm.key = &dctx->ks.ks; in aria_gcm_dupctx()
|
/openssl/crypto/encode_decode/ |
H A D | decoder_meth.c | 60 OPENSSL_free(decoder->base.name); in OSSL_DECODER_free() 62 ossl_provider_free(decoder->base.prov); in OSSL_DECODER_free() 208 decoder->base.id = id; in ossl_decoder_from_algorithm() 213 decoder->base.algodef = algodef; in ossl_decoder_from_algorithm() 214 if ((decoder->base.parsed_propdef in ossl_decoder_from_algorithm() 283 decoder->base.prov = prov; in ossl_decoder_from_algorithm() 461 return decoder->base.prov; in OSSL_DECODER_get0_provider() 492 return decoder->base.id; in ossl_decoder_get_number() 497 return decoder->base.name; in OSSL_DECODER_get0_name() 507 if (decoder->base.prov != NULL) { in OSSL_DECODER_is_a() [all …]
|
H A D | encoder_meth.c | 60 OPENSSL_free(encoder->base.name); in OSSL_ENCODER_free() 62 ossl_provider_free(encoder->base.prov); in OSSL_ENCODER_free() 208 encoder->base.id = id; in encoder_from_algorithm() 213 encoder->base.algodef = algodef; in encoder_from_algorithm() 214 if ((encoder->base.parsed_propdef in encoder_from_algorithm() 293 encoder->base.prov = prov; in encoder_from_algorithm() 470 return encoder->base.prov; in OSSL_ENCODER_get0_provider() 501 return encoder->base.id; in ossl_encoder_get_number() 506 return encoder->base.name; in OSSL_ENCODER_get0_name() 516 if (encoder->base.prov != NULL) { in OSSL_ENCODER_is_a() [all …]
|
/openssl/crypto/ |
H A D | punycode.c | 17 static const unsigned int base = 36; variable 52 while (delta > ((base - tmin) * tmax) / 2) { in adapt() 53 delta = delta / (base - tmin); in adapt() 54 k = k + base; in adapt() 57 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()
|
H 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()
|
/openssl/test/ |
H A D | hpke_test.c | 119 base->ikmE, base->ikmElen, libctx, propq))) in do_testhpke() 121 if (!TEST_true(cmpkey(privE, base->expected_pkEm, base->expected_pkEmlen))) in do_testhpke() 123 if (!TEST_ptr(sealctx = OSSL_HPKE_CTX_new(base->mode, base->suite, in do_testhpke() 131 if (!TEST_true(base->ikmAuth != NULL && base->ikmAuthlen > 0)) in do_testhpke() 135 base->ikmAuth, base->ikmAuthlen, in do_testhpke() 149 base->psk, base->psklen))) in do_testhpke() 154 base->ksinfo, base->ksinfolen))) in do_testhpke() 173 if (!TEST_ptr(openctx = OSSL_HPKE_CTX_new(base->mode, base->suite, in do_testhpke() 179 if (!TEST_true(base->pskid != NULL && base->psk != NULL in do_testhpke() 183 base->psk, base->psklen))) in do_testhpke() [all …]
|
/openssl/crypto/objects/ |
H 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/crypto/perlasm/ |
H 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/providers/implementations/kdfs/ |
H A D | argon2.c | 113 uint64_t *base = &x[16 * i]; \ 115 *base, *(base + 1), *(base + 2), *(base + 3), \ 116 *(base + 4), *(base + 5), *(base + 6), *(base + 7), \ 117 *(base + 8), *(base + 9), *(base + 10), *(base + 11), \ 118 *(base + 12), *(base + 13), *(base + 14), *(base + 15) \ 125 uint64_t *base = &x[2 * i]; \ 127 *base, *(base + 1), *(base + 16), *(base + 17), \ 128 *(base + 32), *(base + 33), *(base + 48), *(base + 49), \ 129 *(base + 64), *(base + 65), *(base + 80), *(base + 81), \ 130 *(base + 96), *(base + 97), *(base + 112), *(base + 113) \
|
H A D | hmacdrbg_kdf.c | 33 PROV_DRBG_HMAC base; member 59 PROV_DRBG_HMAC *drbg = &ctx->base; in hmac_drbg_kdf_reset() 101 if (!ossl_drbg_hmac_dup(&dst->base, &src->base) in hmac_drbg_kdf_dup() 120 PROV_DRBG_HMAC *drbg = &ctx->base; in hmac_drbg_kdf_derive() 142 PROV_DRBG_HMAC *drbg = &hmac->base; in hmac_drbg_kdf_get_ctx_params() 180 PROV_DRBG_HMAC *drbg = &hmac->base; in hmac_drbg_kdf_set_ctx_params()
|