4 * Copyright (c) 2015, Intel Corporation
5 * Authors: Tadeusz Struk <tadeusz.struk@intel.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
15 #include <linux/types.h>
18 * rsa_key - RSA key structure
19 * @n : RSA modulus raw byte stream
20 * @e : RSA public exponent raw byte stream
21 * @d : RSA private exponent raw byte stream
22 * @n_sz : length in bytes of RSA modulus n
23 * @e_sz : length in bytes of RSA public exponent
24 * @d_sz : length in bytes of RSA private exponent
35 int rsa_parse_pub_key(struct rsa_key
*rsa_key
, const void *key
,
36 unsigned int key_len
);
38 int rsa_parse_priv_key(struct rsa_key
*rsa_key
, const void *key
,
39 unsigned int key_len
);
41 extern struct crypto_template rsa_pkcs1pad_tmpl
;