/openssl/providers/implementations/ciphers/ |
H A D | cipher_sm4_hw.c | 26 ctx->stream.cbc = NULL; in cipher_hw_sm4_initkey() 29 ctx->stream.cbc = (cbc128_f)HWSM4_cbc_encrypt; in cipher_hw_sm4_initkey() 49 ctx->stream.cbc = NULL; in cipher_hw_sm4_initkey() 62 ctx->stream.cbc = NULL; in cipher_hw_sm4_initkey() 64 ctx->stream.cbc = (cbc128_f)vpsm4_cbc_encrypt; in cipher_hw_sm4_initkey() 80 ctx->stream.cbc = NULL; in cipher_hw_sm4_initkey() 83 ctx->stream.cbc = (cbc128_f)HWSM4_cbc_encrypt; in cipher_hw_sm4_initkey() 95 ctx->stream.cbc = NULL; in cipher_hw_sm4_initkey() 106 ctx->stream.cbc = NULL; in cipher_hw_sm4_initkey() 108 ctx->stream.cbc = (cbc128_f)vpsm4_cbc_encrypt; in cipher_hw_sm4_initkey() [all …]
|
H A D | cipher_aes_siv_hw.c | 28 EVP_CIPHER_free(ctx->cbc); in aes_siv_initkey() 30 ctx->cbc = NULL; in aes_siv_initkey() 35 ctx->cbc = EVP_CIPHER_fetch(libctx, "AES-128-CBC", propq); in aes_siv_initkey() 39 ctx->cbc = EVP_CIPHER_fetch(libctx, "AES-192-CBC", propq); in aes_siv_initkey() 43 ctx->cbc = EVP_CIPHER_fetch(libctx, "AES-256-CBC", propq); in aes_siv_initkey() 49 if (ctx->cbc == NULL || ctx->ctr == NULL) in aes_siv_initkey() 55 return ossl_siv128_init(sctx, key, klen, ctx->cbc, ctx->ctr, libctx, in aes_siv_initkey() 70 if (out->cbc != NULL) in aes_siv_dupctx() 71 EVP_CIPHER_up_ref(out->cbc); in aes_siv_dupctx() 99 EVP_CIPHER_free(ctx->cbc); in aes_siv_cleanup()
|
H A D | cipher_aes_hw_t4.inc | 11 * Sparc t4 support for AES modes ecb, cbc, ofb, cfb, ctr. 32 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ? 36 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ? 40 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ? 53 dat->stream.cbc = (cbc128_f)aes128_t4_cbc_encrypt; 57 dat->stream.cbc = NULL; 61 dat->stream.cbc = (cbc128_f)aes192_t4_cbc_encrypt; 65 dat->stream.cbc = NULL; 69 dat->stream.cbc = (cbc128_f)aes256_t4_cbc_encrypt; 73 dat->stream.cbc = NULL;
|
H A D | cipher_aes_hw.c | 34 dat->stream.cbc = NULL; in cipher_hw_aes_initkey() 37 dat->stream.cbc = (cbc128_f)HWAES_cbc_encrypt; in cipher_hw_aes_initkey() 49 dat->stream.cbc = (cbc128_f)ossl_bsaes_cbc_encrypt; in cipher_hw_aes_initkey() 56 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey() 63 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey() 71 dat->stream.cbc = NULL; in cipher_hw_aes_initkey() 74 dat->stream.cbc = (cbc128_f)HWAES_cbc_encrypt; in cipher_hw_aes_initkey() 101 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey() 108 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey() 157 PROV_CIPHER_HW_aes_mode(cbc)
|
H A D | cipher_camellia_hw_t4.inc | 33 dat->stream.cbc = (cbc128_f) cmll128_t4_cbc_encrypt; 37 dat->stream.cbc = NULL; 42 dat->stream.cbc = (cbc128_f) cmll256_t4_cbc_encrypt; 46 dat->stream.cbc = NULL; 56 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? 61 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
|
H A D | cipher_tdes_hw.c | 29 tctx->tstream.cbc = NULL; in ossl_cipher_hw_tdes_ede3_initkey() 36 tctx->tstream.cbc = ctx->enc ? des_t4_ede3_cbc_encrypt : in ossl_cipher_hw_tdes_ede3_initkey() 63 if (tctx->tstream.cbc != NULL) { in ossl_cipher_hw_tdes_cbc() 64 (*tctx->tstream.cbc) (in, out, inl, tctx->tks.ks, ctx->iv); in ossl_cipher_hw_tdes_cbc() 98 PROV_CIPHER_HW_tdes_mode(ede3, cbc)
|
H A D | cipher_aes_hw_rv64i.inc | 11 * RISC-V 64 ZKND ZKNE support for AES modes ecb, cbc, ofb, cfb, ctr. 36 dat->stream.cbc = NULL; 40 dat->stream.cbc = NULL; 52 * RISC-V RV64 ZVKNED support for AES modes ecb, cbc, ofb, cfb, ctr. 88 dat->stream.cbc = (cbc128_f) rv64i_zvkned_cbc_encrypt; 90 dat->stream.cbc = (cbc128_f) rv64i_zvkned_cbc_decrypt;
|
H A D | cipher_aes_hw_rv32i.inc | 11 * RISC-V 32 ZKND ZKNE support for AES modes ecb, cbc, ofb, cfb, ctr. 44 dat->stream.cbc = NULL; 48 dat->stream.cbc = NULL; 72 dat->stream.cbc = NULL; 76 dat->stream.cbc = NULL;
|
H A D | cipher_camellia_hw.c | 35 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cipher_hw_camellia_initkey() 39 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cipher_hw_camellia_initkey() 68 PROV_CIPHER_HW_camellia_mode(cbc)
|
H A D | cipher_aes_hw_aesni.inc | 11 * AES-NI support for AES modes ecb, cbc, ofb, cfb, ctr. 34 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ? 40 dat->stream.cbc = (cbc128_f) aesni_cbc_encrypt; 44 dat->stream.cbc = NULL;
|
H A D | cipher_des_hw.c | 26 dctx->dstream.cbc = NULL; in cipher_hw_des_initkey() 31 dctx->dstream.cbc = ctx->enc ? des_t4_cbc_encrypt : in cipher_hw_des_initkey() 71 if (dctx->dstream.cbc != NULL) { in cipher_hw_des_cbc_cipher() 72 (*dctx->dstream.cbc) (in, out, len, key, ctx->iv); in cipher_hw_des_cbc_cipher() 193 PROV_CIPHER_HW_des_mode(cbc)
|
H A D | cipher_aria.c | 50 IMPLEMENT_generic_cipher(aria, ARIA, cbc, CBC, 0, 256, 128, 128, block) 52 IMPLEMENT_generic_cipher(aria, ARIA, cbc, CBC, 0, 192, 128, 128, block) 54 IMPLEMENT_generic_cipher(aria, ARIA, cbc, CBC, 0, 128, 128, 128, block)
|
H A D | cipher_camellia.c | 56 IMPLEMENT_generic_cipher(camellia, CAMELLIA, cbc, CBC, 0, 256, 128, 128, block) 58 IMPLEMENT_generic_cipher(camellia, CAMELLIA, cbc, CBC, 0, 192, 128, 128, block) 60 IMPLEMENT_generic_cipher(camellia, CAMELLIA, cbc, CBC, 0, 128, 128, 128, block)
|
H A D | cipher_aes.c | 57 IMPLEMENT_generic_cipher(aes, AES, cbc, CBC, 0, 256, 128, 128, block) 59 IMPLEMENT_generic_cipher(aes, AES, cbc, CBC, 0, 192, 128, 128, block) 61 IMPLEMENT_generic_cipher(aes, AES, cbc, CBC, 0, 128, 128, 128, block)
|
H A D | cipher_sm4_hw_rv64i.inc | 11 * RV64 ZVKSED support for AES modes ecb, cbc, ofb, cfb, ctr. 34 ctx->stream.cbc = NULL; 38 ctx->stream.cbc = NULL;
|
H A D | cipher_camellia_cts.inc | 90 IMPLEMENT_cts_cipher(camellia, CAMELLIA, cbc, CBC, CTS_FLAGS, 256, 128, 128, block) 92 IMPLEMENT_cts_cipher(camellia, CAMELLIA, cbc, CBC, CTS_FLAGS, 192, 128, 128, block) 94 IMPLEMENT_cts_cipher(camellia, CAMELLIA, cbc, CBC, CTS_FLAGS, 128, 128, 128, block)
|
/openssl/crypto/modes/ |
H A D | cts128.c | 105 (*cbc) (in, out, len, key, ivec, 1); in CRYPTO_cts128_encrypt() 112 (*cbc) (in, out - 16, residue, key, ivec, 1); in CRYPTO_cts128_encrypt() 118 (*cbc) (tmp.c, out - 16, 16, key, ivec, 1); in CRYPTO_cts128_encrypt() 140 (*cbc) (in, out, len, key, ivec, 1); in CRYPTO_nistcts128_encrypt() 267 (*cbc) (in, out, len, key, ivec, 0); in CRYPTO_cts128_decrypt() 276 (*cbc) (in, tmp.c, 16, key, tmp.c + 16, 0); in CRYPTO_cts128_decrypt() 280 (*cbc) (tmp.c, out, 16 + residue, key, ivec, 0); in CRYPTO_cts128_decrypt() 282 (*cbc) (tmp.c, tmp.c, 32, key, ivec, 0); in CRYPTO_cts128_decrypt() 304 (*cbc) (in, out, len, key, ivec, 0); in CRYPTO_nistcts128_decrypt() 311 (*cbc) (in, out, len, key, ivec, 0); in CRYPTO_nistcts128_decrypt() [all …]
|
/openssl/crypto/evp/ |
H A D | e_sm4.c | 31 cbc128_f cbc; member 50 BLOCK_CIPHER_generic(nid,16,16,cbc,cbc,CBC,flags|EVP_CIPH_FLAG_DEFAULT_ASN1) \ 69 dat->stream.cbc = NULL; in sm4_init_key() 72 dat->stream.cbc = (cbc128_f) HWSM4_cbc_encrypt; in sm4_init_key() 84 dat->stream.cbc = NULL; in sm4_init_key() 86 dat->stream.cbc = (cbc128_f) vpsm4_cbc_encrypt; in sm4_init_key() 100 dat->stream.cbc = NULL; in sm4_init_key() 103 dat->stream.cbc = (cbc128_f) HWSM4_cbc_encrypt; in sm4_init_key() 123 dat->stream.cbc = NULL; in sm4_init_key() 125 dat->stream.cbc = (cbc128_f) vpsm4_cbc_encrypt; in sm4_init_key() [all …]
|
H A D | e_camellia.c | 36 cbc128_f cbc; member 69 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cmll_t4_init_key() 74 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cmll_t4_init_key() 86 dat->stream.cbc = (cbc128_f) cmll128_t4_cbc_encrypt; in cmll_t4_init_key() 90 dat->stream.cbc = NULL; in cmll_t4_init_key() 99 dat->stream.cbc = NULL; in cmll_t4_init_key() 183 BLOCK_CIPHER_generic(nid,keylen,16,16,cbc,cbc,CBC,flags|EVP_CIPH_FLAG_DEFAULT_ASN1) \ 209 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in camellia_init_key() 213 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in camellia_init_key() 225 if (dat->stream.cbc) in camellia_cbc_cipher() [all …]
|
H A D | e_des.c | 32 void (*cbc) (const void *, void *, size_t, member 98 if (dat->stream.cbc != NULL) { in des_cbc_cipher() 99 (*dat->stream.cbc) (in, out, inl, &dat->ks.ks, ctx->iv); in des_cbc_cipher() 216 dat->stream.cbc = NULL; in des_init_key() 223 dat->stream.cbc = enc ? des_t4_cbc_encrypt : des_t4_cbc_decrypt; in des_init_key()
|
H A D | e_des3.c | 32 void (*cbc) (const void *, void *, size_t, member 112 if (dat->stream.cbc != NULL) { in des_ede_cbc_cipher() 113 (*dat->stream.cbc) (in, out, inl, dat->ks.ks, in des_ede_cbc_cipher() 231 dat->stream.cbc = NULL; in des_ede_init_key() 240 dat->stream.cbc = enc ? des_t4_ede3_cbc_encrypt : in des_ede_init_key() 258 dat->stream.cbc = NULL; in des_ede3_init_key() 267 dat->stream.cbc = enc ? des_t4_ede3_cbc_encrypt : in des_ede3_init_key()
|
/openssl/doc/man1/ |
H A D | openssl-enc.pod.in | 329 bf Alias for bf-cbc 330 blowfish Alias for bf-cbc 335 cast-cbc CAST in CBC mode 336 cast Alias for cast-cbc 337 cast5-cbc CAST5 in CBC mode 344 des-cbc DES in CBC mode 345 des Alias for des-cbc 367 idea same as idea-cbc 373 rc2 Alias for rc2-cbc 385 rc5 Alias for rc5-cbc [all …]
|
H A D | openssl.pod | 409 =item B<aes128>, B<aes-128-cbc>, B<aes-128-cfb>, B<aes-128-ctr>, B<aes-128-ecb>, B<aes-128-ofb> 437 =item B<bf>, B<bf-cbc>, B<bf-cfb>, B<bf-ecb>, B<bf-ofb> 453 =item B<cast>, B<cast-cbc> 457 =item B<cast5-cbc>, B<cast5-cfb>, B<cast5-ecb>, B<cast5-ofb> 465 =item B<des>, B<des-cbc>, B<des-cfb>, B<des-ecb>, B<des-ede>, B<des-ede-cbc>, B<des-ede-cfb>, B<des… 469 =item B<des3>, B<desx>, B<des-ede3>, B<des-ede3-cbc>, B<des-ede3-cfb>, B<des-ede3-ofb> 473 =item B<idea>, B<idea-cbc>, B<idea-cfb>, B<idea-ecb>, B<idea-ofb> 477 =item B<rc2>, B<rc2-cbc>, B<rc2-cfb>, B<rc2-ecb>, B<rc2-ofb> 485 =item B<rc5>, B<rc5-cbc>, B<rc5-cfb>, B<rc5-ecb>, B<rc5-ofb> 489 =item B<seed>, B<seed-cbc>, B<seed-cfb>, B<seed-ecb>, B<seed-ofb> [all …]
|
/openssl/crypto/perlasm/ |
H A D | README.md | 108 There is also a cbc mode function generator in cbc.pl 110 &cbc($name, 127 &cbc("BF_cbc_encrypt","BF_encrypt","BF_encrypt",1,4,5,3,-1,-1); 129 &cbc("des_ncbc_encrypt","des_encrypt","des_encrypt",0,4,5,3,5,-1); 130 &cbc("des_ede3_cbc_encrypt","des_encrypt3","des_decrypt3",0,6,7,3,4,5);
|
/openssl/include/crypto/ |
H A D | siv.h | 15 EVP_CIPHER *cbc, EVP_CIPHER *ctr, 18 const EVP_CIPHER *cbc, const EVP_CIPHER *ctr,
|