/openssl/providers/implementations/ciphers/ |
H A D | cipher_chacha20_poly1305.c | 167 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_set_ctx_params() local 255 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_einit() local 258 hw->initiv(ctx); in chacha20_poly1305_einit() 275 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_dinit() local 278 hw->initiv(ctx); in chacha20_poly1305_dinit() 290 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_cipher() local 291 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_cipher() 306 if (!hw->aead_cipher(ctx, out, outl, in, inl)) in chacha20_poly1305_cipher() 316 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_final() local 317 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_final() [all …]
|
H A D | cipher_cts.c | 107 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_encrypt() 142 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_decrypt() 149 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_decrypt() 187 if (!ctx->hw->cipher(ctx, out, ct_mid.c, CTS_BLOCK_SIZE)) in cts128_cs1_decrypt() 206 return ctx->hw->cipher(ctx, out, in, len) ? len : 0; in cts128_cs3_encrypt() 213 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs3_encrypt() 246 return ctx->hw->cipher(ctx, out, in, len) ? len : 0; in cts128_cs3_decrypt() 255 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs3_decrypt() 267 if (!ctx->hw->cipher(ctx, pt_last.c, in, CTS_BLOCK_SIZE)) in cts128_cs3_decrypt() 306 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs2_encrypt() [all …]
|
H A D | ciphercommon_ccm.c | 216 if (!ctx->hw->gettag(ctx, p->data, p->data_size)) in ossl_ccm_get_ctx_params() 249 if (!ctx->hw->setkey(ctx, key, keylen)) in ccm_init() 327 const PROV_CCM_HW *hw = ctx->hw; in ccm_set_iv() local 329 if (!hw->setiv(ctx, ctx->iv, ccm_get_ivlen(ctx), mlen)) in ccm_set_iv() 360 if (!ctx->hw->setaad(ctx, ctx->buf, ctx->tls_aad_len)) in ccm_tls_cipher() 371 if (!ctx->hw->auth_decrypt(ctx, in, out, len, in ccm_tls_cipher() 388 const PROV_CCM_HW *hw = ctx->hw; in ccm_cipher_internal() local 412 if (!hw->setaad(ctx, in, len)) in ccm_cipher_internal() 421 if (!hw->auth_encrypt(ctx, in, out, len, NULL, 0)) in ccm_cipher_internal() 429 if (!hw->auth_decrypt(ctx, in, out, len, ctx->buf, ctx->m)) in ccm_cipher_internal() [all …]
|
H A D | cipher_tdes_wrap.c | 47 ctx->hw->cipher(ctx, icv, in, 8); in des_ede3_unwrap() 57 ctx->hw->cipher(ctx, out, in + 8, inl - 16); in des_ede3_unwrap() 59 ctx->hw->cipher(ctx, iv, in + inl - 8, 8); in des_ede3_unwrap() 65 ctx->hw->cipher(ctx, out, out, inl - 16); in des_ede3_unwrap() 66 ctx->hw->cipher(ctx, icv, icv, 8); in des_ede3_unwrap() 103 ctx->hw->cipher(ctx, out + ivlen, out + ivlen, inl + ivlen); in des_ede3_wrap() 106 ctx->hw->cipher(ctx, out, out, len); in des_ede3_wrap()
|
H A D | ciphercommon_gcm.c | 34 const PROV_GCM_HW *hw) in ossl_gcm_initctx() argument 42 ctx->hw = hw; in ossl_gcm_initctx() 75 if (!ctx->hw->setkey(ctx, key, ctx->keylen)) in gcm_init() 116 || !ctx->hw->setiv(ctx, ctx->iv, ctx->ivlen)) in getivgen() 138 if (!ctx->hw->setiv(ctx, ctx->iv, ctx->ivlen)) in setivinv() 420 const PROV_GCM_HW *hw = ctx->hw; in gcm_cipher_internal() local 440 if (!hw->setiv(ctx, ctx->iv, ctx->ivlen)) in gcm_cipher_internal() 448 if (!hw->aadupdate(ctx, in, len)) in gcm_cipher_internal() 452 if (!hw->cipherupdate(ctx, in, len, out)) in gcm_cipher_internal() 459 if (!hw->cipherfinal(ctx, ctx->buf)) in gcm_cipher_internal() [all …]
|
H A D | cipher_chacha20.c | 178 PROV_CIPHER_HW_CHACHA20 *hw = (PROV_CIPHER_HW_CHACHA20 *)ctx->hw; in ossl_chacha20_einit() local 180 hw->initiv(ctx); in ossl_chacha20_einit() 197 PROV_CIPHER_HW_CHACHA20 *hw = (PROV_CIPHER_HW_CHACHA20 *)ctx->hw; in ossl_chacha20_dinit() local 199 hw->initiv(ctx); in ossl_chacha20_dinit()
|
H A D | cipher_aes_cbc_hmac_sha.c | 89 PROV_CIPHER_HW_AES_HMAC_SHA *hw = in aes_set_ctx_params() local 90 (PROV_CIPHER_HW_AES_HMAC_SHA *)ctx->hw; in aes_set_ctx_params() 106 hw->init_mac_key(ctx, p->data, p->data_size); in aes_set_ctx_params() 138 if (hw->tls1_multiblock_aad(vctx, &mb_param) <= 0) in aes_set_ctx_params() 169 if (hw->tls1_multiblock_encrypt(vctx, &mb_param) <= 0) in aes_set_ctx_params() 180 if (hw->set_tls1_aad(ctx, p->data, p->data_size) <= 0) in aes_set_ctx_params() 228 PROV_CIPHER_HW_AES_HMAC_SHA *hw = in aes_get_ctx_params() local 229 (PROV_CIPHER_HW_AES_HMAC_SHA *)ctx->hw; in aes_get_ctx_params() 230 size_t len = hw->tls1_multiblock_max_bufsize(ctx); in aes_get_ctx_params() 317 ctx->hw = (PROV_CIPHER_HW_AES_HMAC_SHA *)ctx->base.hw; in base_init()
|
H A D | cipher_aes_siv.c | 43 ctx->hw = ossl_prov_cipher_hw_aes_siv(keybits); in aes_siv_newctx() 54 ctx->hw->cleanup(ctx); in aes_siv_freectx() 70 if (!in->hw->dupctx(in, ret)) { in siv_dupctx() 93 if (!ctx->hw->initkey(ctx, key, ctx->keylen)) in siv_init() 135 if (ctx->hw->cipher(ctx, out, in, inl) <= 0) in siv_cipher() 151 if (!ctx->hw->cipher(vctx, out, NULL, 0)) in siv_stream_final() 213 || !ctx->hw->settag(ctx, p->data, p->data_size)) { in aes_siv_set_ctx_params() 224 ctx->hw->setspeed(ctx, (int)speed); in aes_siv_set_ctx_params()
|
H A D | ciphercommon_gcm_hw.c | 58 if (!ctx->hw->aadupdate(ctx, aad, aad_len)) in ossl_gcm_one_shot() 60 if (!ctx->hw->cipherupdate(ctx, in, in_len, out)) in ossl_gcm_one_shot() 63 if (!ctx->hw->cipherfinal(ctx, tag)) in ossl_gcm_one_shot()
|
H A D | ciphercommon.c | 222 if (!ctx->hw->init(ctx, key, ctx->keylen)) in cipher_generic_init_internal() 314 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_block_update() 354 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_update() 377 if (!ctx->hw->cipher(ctx, out, in, nextblocks)) { in ossl_cipher_generic_block_update() 429 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_final() 448 if (!ctx->hw->cipher(ctx, ctx->buf, ctx->buf, blksz)) { in ossl_cipher_generic_block_final() 489 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_stream_update() 566 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_cipher() 694 uint64_t flags, const PROV_CIPHER_HW *hw, in ossl_cipher_generic_initkey() argument 707 ctx->hw = hw; in ossl_cipher_generic_initkey()
|
H A D | cipher_aes_gcm_siv.c | 37 ctx->hw = ossl_prov_cipher_hw_aes_gcm_siv(keybits); in ossl_aes_gcm_siv_newctx() 52 ctx->hw->clean_ctx(ctx); in ossl_aes_gcm_siv_freectx() 64 if (in->hw == NULL) in ossl_aes_gcm_siv_dupctx() 79 if (!in->hw->dup_ctx(ret, in)) in ossl_aes_gcm_siv_dupctx() 117 if (!ctx->hw->initkey(ctx)) in ossl_aes_gcm_siv_init() 159 error |= !ctx->hw->cipher(ctx, out, in, inl); in ossl_aes_gcm_siv_cipher() 175 error |= !ctx->hw->cipher(vctx, out, NULL, 0); in ossl_aes_gcm_siv_stream_final()
|
H A D | cipher_tdes_common.c | 24 size_t ivbits, uint64_t flags, const PROV_CIPHER_HW *hw) in ossl_tdes_newctx() argument 35 hw, provctx); in ossl_tdes_newctx() 52 in->base.hw->copyctx(&ret->base, &in->base); in ossl_tdes_dupctx() 107 if (!ctx->hw->init(ctx, key, ctx->keylen)) in tdes_init()
|
H A D | cipher_des.c | 33 const PROV_CIPHER_HW *hw) in des_newctx() argument 43 hw, provctx); in des_newctx() 58 in->base.hw->copyctx(&ret->base, &in->base); in des_dupctx() 97 if (!ctx->hw->init(ctx, key, keylen)) in des_init()
|
H A D | cipher_aes_siv.h | 32 const PROV_CIPHER_HW_AES_SIV *hw; member
|
H A D | cipher_aes_cbc_hmac_sha.h | 44 const PROV_CIPHER_HW_AES_HMAC_SHA *hw; member
|
H A D | cipher_sm4.c | 38 in->base.hw->copyctx(&ret->base, &in->base); in sm4_dupctx()
|
H A D | cipher_aes_gcm_siv.h | 35 const PROV_CIPHER_HW_AES_GCM_SIV *hw; /* maybe not used, yet? */ member
|
H A D | cipher_aes_xts.c | 95 if (!ctx->hw->init(ctx, key, keylen)) in aes_xts_init() 172 in->base.hw->copyctx(&ret->base, &in->base); in aes_xts_dupctx()
|
H A D | cipher_sm4_xts.c | 57 if (!ctx->hw->init(ctx, key, keylen)) in sm4_xts_init() 117 in->base.hw->copyctx(&ret->base, &in->base); in sm4_xts_dupctx()
|
H A D | cipher_aria.c | 38 in->base.hw->copyctx(&ret->base, &in->base); in aria_dupctx()
|
H A D | cipher_camellia.c | 44 in->base.hw->copyctx(&ret->base, &in->base); in camellia_dupctx()
|
H A D | cipher_aes.c | 45 in->base.hw->copyctx(&ret->base, &in->base); in aes_dupctx()
|
/openssl/providers/implementations/include/prov/ |
H A D | ciphercommon_ccm.h | 48 const PROV_CCM_HW *hw; /* hardware specific methods */ member 92 void ossl_ccm_initctx(PROV_CCM_CTX *ctx, size_t keybits, const PROV_CCM_HW *hw);
|
H A D | ciphercommon_gcm.h | 79 const PROV_GCM_HW *hw; /* hardware specific methods */ member 115 const PROV_GCM_HW *hw);
|
/openssl/util/perl/OpenSSL/ |
H A D | config.pm | 131 my $hw = `/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model`; 132 $hw =~ s@.*(.)86-class.*@i${1}86@; 133 return "${hw}-whatever-netbsd";
|