if (err)
{
grub_errno = GRUB_ERR_NONE;
+ grub_crypto_cipher_close (cipher);
continue;
}
if (err)
{
grub_errno = GRUB_ERR_NONE;
+ grub_crypto_cipher_close (cipher);
continue;
}
{
grub_dprintf ("zfs", "key loading failed\n");
grub_errno = GRUB_ERR_NONE;
+ grub_crypto_cipher_close (cipher);
continue;
}
{
grub_dprintf ("zfs", "key loading failed\n");
grub_errno = GRUB_ERR_NONE;
+ grub_crypto_cipher_close (cipher);
continue;
}
ret = grub_crypto_cipher_open (GRUB_CIPHER_AES);
if (!ret)
{
grub_errno = GRUB_ERR_NONE;
+ grub_crypto_cipher_close (cipher);
continue;
}
err = grub_crypto_cipher_set_key (ret, decrypted, keylen);
{
grub_errno = GRUB_ERR_NONE;
grub_crypto_cipher_close (ret);
+ grub_crypto_cipher_close (cipher);
continue;
}
+ grub_crypto_cipher_close (cipher);
return ret;
}
return NULL;