Home
last modified time | relevance | path

Searched refs:hw (Results 1 – 25 of 36) sorted by relevance

12

/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305.c167 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 Dcipher_cts.c107 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 Dciphercommon_ccm.c216 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 Dcipher_tdes_wrap.c47 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 Dciphercommon_gcm.c34 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 Dcipher_chacha20.c178 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 Dcipher_aes_cbc_hmac_sha.c89 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 Dcipher_aes_siv.c43 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 Dciphercommon_gcm_hw.c58 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 Dciphercommon.c222 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 Dcipher_aes_gcm_siv.c37 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 Dcipher_tdes_common.c24 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 Dcipher_des.c33 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 Dcipher_aes_siv.h32 const PROV_CIPHER_HW_AES_SIV *hw; member
H A Dcipher_aes_cbc_hmac_sha.h44 const PROV_CIPHER_HW_AES_HMAC_SHA *hw; member
H A Dcipher_sm4.c38 in->base.hw->copyctx(&ret->base, &in->base); in sm4_dupctx()
H A Dcipher_aes_gcm_siv.h35 const PROV_CIPHER_HW_AES_GCM_SIV *hw; /* maybe not used, yet? */ member
H A Dcipher_aes_xts.c95 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 Dcipher_sm4_xts.c57 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 Dcipher_aria.c38 in->base.hw->copyctx(&ret->base, &in->base); in aria_dupctx()
H A Dcipher_camellia.c44 in->base.hw->copyctx(&ret->base, &in->base); in camellia_dupctx()
H A Dcipher_aes.c45 in->base.hw->copyctx(&ret->base, &in->base); in aes_dupctx()
/openssl/providers/implementations/include/prov/
H A Dciphercommon_ccm.h48 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 Dciphercommon_gcm.h79 const PROV_GCM_HW *hw; /* hardware specific methods */ member
115 const PROV_GCM_HW *hw);
/openssl/util/perl/OpenSSL/
H A Dconfig.pm131 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";

Completed in 30 milliseconds

12