Lines Matching refs:dat
289 EVP_AES_KEY *dat = (EVP_AES_KEY *)ctx->cipher_data; in aes_init_key() local
294 ret = aes_v8_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
295 dat->block = (block128_f)aes_v8_decrypt; in aes_init_key()
296 dat->stream.cbc = NULL; in aes_init_key()
298 dat->stream.cbc = (cbc128_f)aes_v8_cbc_encrypt; in aes_init_key()
301 ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
302 dat->block = (block128_f)AES_decrypt; in aes_init_key()
303 dat->stream.cbc = (cbc128_f)bsaes_cbc_encrypt; in aes_init_key()
305 ret = vpaes_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
306 dat->block = (block128_f)vpaes_decrypt; in aes_init_key()
307 dat->stream.cbc = in aes_init_key()
310 ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
311 dat->block = (block128_f)AES_decrypt; in aes_init_key()
312 dat->stream.cbc = in aes_init_key()
316 ret = aes_v8_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
317 dat->block = (block128_f)aes_v8_encrypt; in aes_init_key()
318 dat->stream.cbc = NULL; in aes_init_key()
320 dat->stream.cbc = (cbc128_f)aes_v8_cbc_encrypt; in aes_init_key()
322 dat->stream.ctr = (ctr128_f)aes_v8_ctr32_encrypt_blocks; in aes_init_key()
325 ret = AES_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
326 dat->block = (block128_f)AES_encrypt; in aes_init_key()
327 dat->stream.ctr = (ctr128_f)bsaes_ctr32_encrypt_blocks; in aes_init_key()
329 ret = vpaes_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
330 dat->block = (block128_f)vpaes_encrypt; in aes_init_key()
331 dat->stream.cbc = in aes_init_key()
334 ret = AES_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
335 dat->block = (block128_f)AES_encrypt; in aes_init_key()
336 dat->stream.cbc = in aes_init_key()
350 EVP_AES_KEY *dat = (EVP_AES_KEY *)ctx->cipher_data; in aes_cbc_cipher() local
352 if (dat->stream.cbc) { in aes_cbc_cipher()
353 (*dat->stream.cbc)(in, out, len, &dat->ks, ctx->iv, ctx->encrypt); in aes_cbc_cipher()
355 CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, ctx->iv, dat->block); in aes_cbc_cipher()
357 CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, ctx->iv, dat->block); in aes_cbc_cipher()
367 EVP_AES_KEY *dat = (EVP_AES_KEY *)ctx->cipher_data; in aes_ecb_cipher() local
374 (*dat->block)(in + i, out + i, &dat->ks); in aes_ecb_cipher()
383 EVP_AES_KEY *dat = (EVP_AES_KEY *)ctx->cipher_data; in aes_ctr_cipher() local
385 if (dat->stream.ctr) { in aes_ctr_cipher()
386 CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, ctx->iv, ctx->buf, &num, in aes_ctr_cipher()
387 dat->stream.ctr); in aes_ctr_cipher()
389 CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, ctx->iv, ctx->buf, &num, in aes_ctr_cipher()
390 dat->block); in aes_ctr_cipher()
398 EVP_AES_KEY *dat = (EVP_AES_KEY *)ctx->cipher_data; in aes_ofb_cipher() local
400 CRYPTO_ofb128_encrypt(in, out, len, &dat->ks, ctx->iv, &ctx->num, dat->block); in aes_ofb_cipher()
835 EVP_AES_KEY *dat = (EVP_AES_KEY *)ctx->cipher_data; in aesni_init_key() local
840 dat->block = (block128_f)aesni_decrypt; in aesni_init_key()
841 dat->stream.cbc = in aesni_init_key()
845 dat->block = (block128_f)aesni_encrypt; in aesni_init_key()
847 dat->stream.cbc = (cbc128_f)aesni_cbc_encrypt; in aesni_init_key()
849 dat->stream.ctr = (ctr128_f)aesni_ctr32_encrypt_blocks; in aesni_init_key()
851 dat->stream.cbc = NULL; in aesni_init_key()