Source
x
int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
/*
* sun4i-ss.h - hardware cryptographic accelerator for Allwinner A20 SoC
*
* Copyright (C) 2013-2015 Corentin LABBE <clabbe.montjoie@gmail.com>
*
* Support AES cipher with 128,192,256 bits keysize.
* Support MD5 and SHA1 hash algorithms.
* Support DES and 3DES
*
* You could find the datasheet in Documentation/arm/sunxi/README
*
* Licensed under the GPL-2.
*/
/* SS_CTL configuration values */
/* PRNG generator mode - bit 15 */
/* IV mode for hash */
/* SS operation mode - bits 12-13 */
/* Counter width for CNT mode - bits 10-11 */
/* Key size for AES - bits 8-9 */
/* Operation direction - bit 7 */
/* SS Method - bits 4-6 */