Lines Matching refs:dat

16 int ossl_cipher_hw_generic_cbc(PROV_CIPHER_CTX *dat, unsigned char *out,  in ossl_cipher_hw_generic_cbc()  argument
19 if (dat->stream.cbc) in ossl_cipher_hw_generic_cbc()
20 (*dat->stream.cbc) (in, out, len, dat->ks, dat->iv, dat->enc); in ossl_cipher_hw_generic_cbc()
21 else if (dat->enc) in ossl_cipher_hw_generic_cbc()
22 CRYPTO_cbc128_encrypt(in, out, len, dat->ks, dat->iv, dat->block); in ossl_cipher_hw_generic_cbc()
24 CRYPTO_cbc128_decrypt(in, out, len, dat->ks, dat->iv, dat->block); in ossl_cipher_hw_generic_cbc()
29 int ossl_cipher_hw_generic_ecb(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_ecb() argument
32 size_t i, bl = dat->blocksize; in ossl_cipher_hw_generic_ecb()
37 if (dat->stream.ecb) { in ossl_cipher_hw_generic_ecb()
38 (*dat->stream.ecb) (in, out, len, dat->ks, dat->enc); in ossl_cipher_hw_generic_ecb()
42 (*dat->block) (in + i, out + i, dat->ks); in ossl_cipher_hw_generic_ecb()
48 int ossl_cipher_hw_generic_ofb128(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_ofb128() argument
51 int num = dat->num; in ossl_cipher_hw_generic_ofb128()
53 CRYPTO_ofb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->block); in ossl_cipher_hw_generic_ofb128()
54 dat->num = num; in ossl_cipher_hw_generic_ofb128()
59 int ossl_cipher_hw_generic_cfb128(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_cfb128() argument
62 int num = dat->num; in ossl_cipher_hw_generic_cfb128()
64 CRYPTO_cfb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb128()
65 dat->block); in ossl_cipher_hw_generic_cfb128()
66 dat->num = num; in ossl_cipher_hw_generic_cfb128()
71 int ossl_cipher_hw_generic_cfb8(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_cfb8() argument
74 int num = dat->num; in ossl_cipher_hw_generic_cfb8()
76 CRYPTO_cfb128_8_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb8()
77 dat->block); in ossl_cipher_hw_generic_cfb8()
78 dat->num = num; in ossl_cipher_hw_generic_cfb8()
83 int ossl_cipher_hw_generic_cfb1(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_cfb1() argument
86 int num = dat->num; in ossl_cipher_hw_generic_cfb1()
88 if (dat->use_bits) { in ossl_cipher_hw_generic_cfb1()
89 CRYPTO_cfb128_1_encrypt(in, out, len, dat->ks, dat->iv, &num, in ossl_cipher_hw_generic_cfb1()
90 dat->enc, dat->block); in ossl_cipher_hw_generic_cfb1()
91 dat->num = num; in ossl_cipher_hw_generic_cfb1()
96 CRYPTO_cfb128_1_encrypt(in, out, MAXBITCHUNK * 8, dat->ks, in ossl_cipher_hw_generic_cfb1()
97 dat->iv, &num, dat->enc, dat->block); in ossl_cipher_hw_generic_cfb1()
103 CRYPTO_cfb128_1_encrypt(in, out, len * 8, dat->ks, dat->iv, &num, in ossl_cipher_hw_generic_cfb1()
104 dat->enc, dat->block); in ossl_cipher_hw_generic_cfb1()
106 dat->num = num; in ossl_cipher_hw_generic_cfb1()
111 int ossl_cipher_hw_generic_ctr(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_ctr() argument
114 unsigned int num = dat->num; in ossl_cipher_hw_generic_ctr()
116 if (dat->stream.ctr) in ossl_cipher_hw_generic_ctr()
117 CRYPTO_ctr128_encrypt_ctr32(in, out, len, dat->ks, dat->iv, dat->buf, in ossl_cipher_hw_generic_ctr()
118 &num, dat->stream.ctr); in ossl_cipher_hw_generic_ctr()
120 CRYPTO_ctr128_encrypt(in, out, len, dat->ks, dat->iv, dat->buf, in ossl_cipher_hw_generic_ctr()
121 &num, dat->block); in ossl_cipher_hw_generic_ctr()
122 dat->num = num; in ossl_cipher_hw_generic_ctr()