Lines Matching refs:dat
148 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aesni_init_key() local
158 ret = aesni_set_decrypt_key(key, keylen, &dat->ks.ks); in aesni_init_key()
159 dat->block = (block128_f) aesni_decrypt; in aesni_init_key()
160 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aesni_init_key()
163 ret = aesni_set_encrypt_key(key, keylen, &dat->ks.ks); in aesni_init_key()
164 dat->block = (block128_f) aesni_encrypt; in aesni_init_key()
166 dat->stream.cbc = (cbc128_f) aesni_cbc_encrypt; in aesni_init_key()
168 dat->stream.ctr = (ctr128_f) aesni_ctr32_encrypt_blocks; in aesni_init_key()
170 dat->stream.cbc = NULL; in aesni_init_key()
477 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_t4_init_key() local
488 aes_t4_set_decrypt_key(key, bits, &dat->ks.ks); in aes_t4_init_key()
489 dat->block = (block128_f) aes_t4_decrypt; in aes_t4_init_key()
492 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aes_t4_init_key()
496 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aes_t4_init_key()
500 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aes_t4_init_key()
508 aes_t4_set_encrypt_key(key, bits, &dat->ks.ks); in aes_t4_init_key()
509 dat->block = (block128_f) aes_t4_encrypt; in aes_t4_init_key()
513 dat->stream.cbc = (cbc128_f) aes128_t4_cbc_encrypt; in aes_t4_init_key()
515 dat->stream.ctr = (ctr128_f) aes128_t4_ctr32_encrypt; in aes_t4_init_key()
517 dat->stream.cbc = NULL; in aes_t4_init_key()
521 dat->stream.cbc = (cbc128_f) aes192_t4_cbc_encrypt; in aes_t4_init_key()
523 dat->stream.ctr = (ctr128_f) aes192_t4_ctr32_encrypt; in aes_t4_init_key()
525 dat->stream.cbc = NULL; in aes_t4_init_key()
529 dat->stream.cbc = (cbc128_f) aes256_t4_cbc_encrypt; in aes_t4_init_key()
531 dat->stream.ctr = (ctr128_f) aes256_t4_ctr32_encrypt; in aes_t4_init_key()
533 dat->stream.cbc = NULL; in aes_t4_init_key()
2407 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_init_key() local
2420 ret = HWAES_set_decrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2421 dat->block = (block128_f) HWAES_decrypt; in aes_init_key()
2422 dat->stream.cbc = NULL; in aes_init_key()
2425 dat->stream.cbc = (cbc128_f) HWAES_cbc_encrypt; in aes_init_key()
2431 ret = AES_set_decrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2432 dat->block = (block128_f) AES_decrypt; in aes_init_key()
2433 dat->stream.cbc = (cbc128_f) ossl_bsaes_cbc_encrypt; in aes_init_key()
2438 ret = vpaes_set_decrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2439 dat->block = (block128_f) vpaes_decrypt; in aes_init_key()
2440 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aes_init_key()
2445 ret = AES_set_decrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2446 dat->block = (block128_f) AES_decrypt; in aes_init_key()
2447 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aes_init_key()
2453 ret = HWAES_set_encrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2454 dat->block = (block128_f) HWAES_encrypt; in aes_init_key()
2455 dat->stream.cbc = NULL; in aes_init_key()
2458 dat->stream.cbc = (cbc128_f) HWAES_cbc_encrypt; in aes_init_key()
2463 dat->stream.ctr = (ctr128_f) HWAES_ctr32_encrypt_blocks; in aes_init_key()
2471 ret = AES_set_encrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2472 dat->block = (block128_f) AES_encrypt; in aes_init_key()
2473 dat->stream.ctr = (ctr128_f) ossl_bsaes_ctr32_encrypt_blocks; in aes_init_key()
2478 ret = vpaes_set_encrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2479 dat->block = (block128_f) vpaes_encrypt; in aes_init_key()
2480 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aes_init_key()
2485 ret = AES_set_encrypt_key(key, keylen, &dat->ks.ks); in aes_init_key()
2486 dat->block = (block128_f) AES_encrypt; in aes_init_key()
2487 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in aes_init_key()
2491 dat->stream.ctr = (ctr128_f) AES_ctr32_encrypt; in aes_init_key()
2506 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_cbc_cipher() local
2508 if (dat->stream.cbc) in aes_cbc_cipher()
2509 (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, in aes_cbc_cipher()
2512 CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, ctx->iv, in aes_cbc_cipher()
2513 dat->block); in aes_cbc_cipher()
2515 CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, in aes_cbc_cipher()
2516 ctx->iv, dat->block); in aes_cbc_cipher()
2526 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_ecb_cipher() local
2532 (*dat->block) (in + i, out + i, &dat->ks); in aes_ecb_cipher()
2540 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_ofb_cipher() local
2543 CRYPTO_ofb128_encrypt(in, out, len, &dat->ks, in aes_ofb_cipher()
2544 ctx->iv, &num, dat->block); in aes_ofb_cipher()
2552 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_cfb_cipher() local
2555 CRYPTO_cfb128_encrypt(in, out, len, &dat->ks, in aes_cfb_cipher()
2557 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in aes_cfb_cipher()
2565 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_cfb8_cipher() local
2568 CRYPTO_cfb128_8_encrypt(in, out, len, &dat->ks, in aes_cfb8_cipher()
2570 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in aes_cfb8_cipher()
2578 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_cfb1_cipher() local
2582 CRYPTO_cfb128_1_encrypt(in, out, len, &dat->ks, in aes_cfb1_cipher()
2584 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in aes_cfb1_cipher()
2591 CRYPTO_cfb128_1_encrypt(in, out, MAXBITCHUNK * 8, &dat->ks, in aes_cfb1_cipher()
2593 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in aes_cfb1_cipher()
2601 CRYPTO_cfb128_1_encrypt(in, out, len * 8, &dat->ks, in aes_cfb1_cipher()
2603 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in aes_cfb1_cipher()
2615 EVP_AES_KEY *dat = EVP_C_DATA(EVP_AES_KEY,ctx); in aes_ctr_cipher() local
2621 if (dat->stream.ctr) in aes_ctr_cipher()
2622 CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, in aes_ctr_cipher()
2625 &num, dat->stream.ctr); in aes_ctr_cipher()
2627 CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, in aes_ctr_cipher()
2630 dat->block); in aes_ctr_cipher()