/openssl-master/providers/implementations/ciphers/ |
A D | cipher_chacha20_poly1305.c | 149 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_set_ctx_params() local 238 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_einit() local 241 hw->initiv(ctx); in chacha20_poly1305_einit() 258 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_dinit() local 261 hw->initiv(ctx); in chacha20_poly1305_dinit() 273 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_cipher() local 274 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_cipher() 289 if (!hw->aead_cipher(ctx, out, outl, in, inl)) in chacha20_poly1305_cipher() 299 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_final() local 300 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_final() [all …]
|
A D | cipher_cts.c | 109 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_encrypt() 144 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_decrypt() 151 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_decrypt() 189 if (!ctx->hw->cipher(ctx, out, ct_mid.c, CTS_BLOCK_SIZE)) in cts128_cs1_decrypt() 208 return ctx->hw->cipher(ctx, out, in, len) ? len : 0; in cts128_cs3_encrypt() 215 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs3_encrypt() 248 return ctx->hw->cipher(ctx, out, in, len) ? len : 0; in cts128_cs3_decrypt() 257 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs3_decrypt() 269 if (!ctx->hw->cipher(ctx, pt_last.c, in, CTS_BLOCK_SIZE)) in cts128_cs3_decrypt() 308 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs2_encrypt() [all …]
|
A D | ciphercommon_ccm.c | 213 if (!ctx->hw->gettag(ctx, p->data, p->data_size)) in ossl_ccm_get_ctx_params() 246 if (!ctx->hw->setkey(ctx, key, keylen)) in ccm_init() 324 const PROV_CCM_HW *hw = ctx->hw; in ccm_set_iv() local 326 if (!hw->setiv(ctx, ctx->iv, ccm_get_ivlen(ctx), mlen)) in ccm_set_iv() 357 if (!ctx->hw->setaad(ctx, ctx->buf, ctx->tls_aad_len)) in ccm_tls_cipher() 368 if (!ctx->hw->auth_decrypt(ctx, in, out, len, in ccm_tls_cipher() 385 const PROV_CCM_HW *hw = ctx->hw; in ccm_cipher_internal() local 409 if (!hw->setaad(ctx, in, len)) in ccm_cipher_internal() 418 if (!hw->auth_encrypt(ctx, in, out, len, NULL, 0)) in ccm_cipher_internal() 426 if (!hw->auth_decrypt(ctx, in, out, len, ctx->buf, ctx->m)) in ccm_cipher_internal() [all …]
|
A D | cipher_tdes_wrap.c | 48 ctx->hw->cipher(ctx, icv, in, 8); in des_ede3_unwrap() 58 ctx->hw->cipher(ctx, out, in + 8, inl - 16); in des_ede3_unwrap() 60 ctx->hw->cipher(ctx, iv, in + inl - 8, 8); in des_ede3_unwrap() 66 ctx->hw->cipher(ctx, out, out, inl - 16); in des_ede3_unwrap() 67 ctx->hw->cipher(ctx, icv, icv, 8); in des_ede3_unwrap() 104 ctx->hw->cipher(ctx, out + ivlen, out + ivlen, inl + ivlen); in des_ede3_wrap() 107 ctx->hw->cipher(ctx, out, out, len); in des_ede3_wrap()
|
A D | cipher_chacha20.c | 158 PROV_CIPHER_HW_CHACHA20 *hw = (PROV_CIPHER_HW_CHACHA20 *)ctx->hw; in ossl_chacha20_einit() local 160 hw->initiv(ctx); in ossl_chacha20_einit() 177 PROV_CIPHER_HW_CHACHA20 *hw = (PROV_CIPHER_HW_CHACHA20 *)ctx->hw; in ossl_chacha20_dinit() local 179 hw->initiv(ctx); in ossl_chacha20_dinit()
|
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()
|
A D | ciphercommon_gcm.c | 29 const PROV_GCM_HW *hw) in ossl_gcm_initctx() argument 37 ctx->hw = hw; in ossl_gcm_initctx() 67 if (!ctx->hw->setkey(ctx, key, ctx->keylen)) in gcm_init() 107 || !ctx->hw->setiv(ctx, ctx->iv, ctx->ivlen)) in getivgen() 129 if (!ctx->hw->setiv(ctx, ctx->iv, ctx->ivlen)) in setivinv() 386 const PROV_GCM_HW *hw = ctx->hw; in gcm_cipher_internal() local 406 if (!hw->setiv(ctx, ctx->iv, ctx->ivlen)) in gcm_cipher_internal() 414 if (!hw->aadupdate(ctx, in, len)) in gcm_cipher_internal() 418 if (!hw->cipherupdate(ctx, in, len, out)) in gcm_cipher_internal() 425 if (!hw->cipherfinal(ctx, ctx->buf)) in gcm_cipher_internal() [all …]
|
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() 72 if (!in->hw->dupctx(in, ret)) { in siv_dupctx() 95 if (!ctx->hw->initkey(ctx, key, ctx->keylen)) in siv_init() 133 if (ctx->hw->cipher(ctx, out, in, inl) <= 0) in siv_cipher() 149 if (!ctx->hw->cipher(vctx, out, NULL, 0)) in siv_stream_final() 211 || !ctx->hw->settag(ctx, p->data, p->data_size)) { in aes_siv_set_ctx_params() 222 ctx->hw->setspeed(ctx, (int)speed); in aes_siv_set_ctx_params()
|
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()
|
A D | cipher_tdes_common.c | 24 size_t ivbits, uint64_t flags, const PROV_CIPHER_HW *hw) in ossl_tdes_newctx() argument 34 hw, provctx); in ossl_tdes_newctx() 51 in->base.hw->copyctx(&ret->base, &in->base); in ossl_tdes_dupctx() 93 if (!ctx->hw->init(ctx, key, ctx->keylen)) in tdes_init()
|
A D | ciphercommon.c | 218 if (!ctx->hw->init(ctx, key, ctx->keylen)) in cipher_generic_init_internal() 304 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_block_update() 344 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_update() 367 if (!ctx->hw->cipher(ctx, out, in, nextblocks)) { in ossl_cipher_generic_block_update() 414 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_final() 433 if (!ctx->hw->cipher(ctx, ctx->buf, ctx->buf, blksz)) { in ossl_cipher_generic_block_final() 469 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_stream_update() 534 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_cipher() 662 uint64_t flags, const PROV_CIPHER_HW *hw, in ossl_cipher_generic_initkey() argument 675 ctx->hw = hw; in ossl_cipher_generic_initkey()
|
A D | cipher_des.c | 33 const PROV_CIPHER_HW *hw) in des_newctx() argument 43 hw, provctx); in des_newctx() 60 in->base.hw->copyctx(&ret->base, &in->base); in des_dupctx() 99 if (!ctx->hw->init(ctx, key, keylen)) in des_init()
|
A D | cipher_aes_siv.h | 32 const PROV_CIPHER_HW_AES_SIV *hw; member
|
A D | cipher_aes_cbc_hmac_sha.h | 44 const PROV_CIPHER_HW_AES_HMAC_SHA *hw; member
|
A D | cipher_sm4.c | 40 in->base.hw->copyctx(&ret->base, &in->base); in sm4_dupctx()
|
A D | cipher_aes_xts.c | 91 if (!ctx->hw->init(ctx, key, keylen)) in aes_xts_init() 153 in->base.hw->copyctx(&ret->base, &in->base); in aes_xts_dupctx()
|
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()
|
A D | cipher_tdes.h | 74 size_t ivbits, uint64_t flags, const PROV_CIPHER_HW *hw);
|
A D | cipher_rc4_hmac_md5.c | 31 #define GET_HW(ctx) ((PROV_CIPHER_HW_RC4_HMAC_MD5 *)ctx->base.hw)
|
/openssl-master/providers/implementations/include/prov/ |
A D | ciphercommon_ccm.h | 44 const PROV_CCM_HW *hw; /* hardware specific methods */ member 88 void ossl_ccm_initctx(PROV_CCM_CTX *ctx, size_t keybits, const PROV_CCM_HW *hw);
|
A D | ciphercommon_gcm.h | 75 const PROV_GCM_HW *hw; /* hardware specific methods */ member 112 const PROV_GCM_HW *hw);
|
A D | ciphercommon.h | 91 const PROV_CIPHER_HW *hw; /* hardware specific functions */ member 126 const PROV_CIPHER_HW *hw, void *provctx);
|
/openssl-master/util/perl/OpenSSL/ |
A D | config.pm | 124 my $hw = `/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model`; 125 $hw =~ s@.*(.)86-class.*@i${1}86@; 126 return "${hw}-whatever-netbsd";
|