Home | History | Annotate | Download | only in tls
      1 /*
      2  * PKCS #1 (RSA Encryption)
      3  * Copyright (c) 2006-2009, Jouni Malinen <j (at) w1.fi>
      4  *
      5  * This software may be distributed under the terms of the BSD license.
      6  * See README for more details.
      7  */
      8 
      9 #ifndef PKCS1_H
     10 #define PKCS1_H
     11 
     12 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
     13 		  int use_private, const u8 *in, size_t inlen,
     14 		  u8 *out, size_t *outlen);
     15 int pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key,
     16 				  const u8 *in, size_t inlen,
     17 				  u8 *out, size_t *outlen);
     18 int pkcs1_decrypt_public_key(struct crypto_rsa_key *key,
     19 			     const u8 *crypt, size_t crypt_len,
     20 			     u8 *plain, size_t *plain_len);
     21 
     22 #endif /* PKCS1_H */
     23