Home | History | Annotate | Download | only in eap_common

Lines Matching refs:cipher

197 	struct crypto_cipher *cipher;
233 cipher = crypto_cipher_init(encr_alg, iv, key, key_len);
234 if (cipher == NULL) {
235 wpa_printf(MSG_INFO, "IKEV2: Failed to initialize cipher");
239 if (crypto_cipher_encrypt(cipher, plain, crypt, len) < 0) {
241 crypto_cipher_deinit(cipher);
244 crypto_cipher_deinit(cipher);
256 struct crypto_cipher *cipher;
296 cipher = crypto_cipher_init(encr_alg, iv, key, key_len);
297 if (cipher == NULL) {
298 wpa_printf(MSG_INFO, "IKEV2: Failed to initialize cipher");
302 if (crypto_cipher_decrypt(cipher, crypt, plain, len) < 0) {
304 crypto_cipher_deinit(cipher);
307 crypto_cipher_deinit(cipher);