Home | History | Annotate | Download | only in eap_common

Lines Matching refs:cipher

198 	struct crypto_cipher *cipher;
234 cipher = crypto_cipher_init(encr_alg, iv, key, key_len);
235 if (cipher == NULL) {
236 wpa_printf(MSG_INFO, "IKEV2: Failed to initialize cipher");
240 if (crypto_cipher_encrypt(cipher, plain, crypt, len) < 0) {
242 crypto_cipher_deinit(cipher);
245 crypto_cipher_deinit(cipher);
257 struct crypto_cipher *cipher;
297 cipher = crypto_cipher_init(encr_alg, iv, key, key_len);
298 if (cipher == NULL) {
299 wpa_printf(MSG_INFO, "IKEV2: Failed to initialize cipher");
303 if (crypto_cipher_decrypt(cipher, crypt, plain, len) < 0) {
305 crypto_cipher_deinit(cipher);
308 crypto_cipher_deinit(cipher);