2N/A * GRUB -- GRand Unified Bootloader 2N/A * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 2N/A * 2007, 2008, 2009 Free Software Foundation, Inc. 2N/A * GRUB is free software: you can redistribute it and/or modify 2N/A * it under the terms of the GNU General Public License as published by 2N/A * the Free Software Foundation, either version 3 of the License, or 2N/A * (at your option) any later version. 2N/A * GRUB is distributed in the hope that it will be useful, 2N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A * GNU General Public License for more details. 2N/A * You should have received a copy of the GNU General Public License 2N/A If it's changed please update this file. */ 2N/A/* Type for the cipher_setkey function. */ 2N/A/* Type for the cipher_encrypt function. */ 2N/A/* Type for the cipher_decrypt function. */ 2N/A/* Type for the cipher_stencrypt function. */ 2N/A/* Type for the cipher_stdecrypt function. */ 2N/A/* Module specification structure for ciphers. */ 2N/A/* Type for the md_init function. */ 2N/A/* Type for the md_write function. */ 2N/A/* Type for the md_final function. */ 2N/A/* Type for the md_read function. */ 2N/A/* Module specification structure for message digests. */ 2N/A /* Block size, needed for HMAC. */ 2N/A/* Implement PKCS#5 PBKDF2 as per RFC 2898. The PRF to use is HMAC variant 2N/A of digest supplied by MD. Inputs are the password P of length PLEN, 2N/A the salt S of length SLEN, the iteration counter C (> 0), and the 2N/A desired derived output length DKLEN. Output buffer is DK which 2N/A must have room for at least DKLEN octets. The output buffer will 2N/A be filled with the derived data. */ 2N/A/* For indistinguishibility. */