wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pkcs1.h
Go to the documentation of this file.
1 
5 #ifndef PKCS1_H
6 #define PKCS1_H
7 
8 struct crypto_public_key;
9 struct asn1_oid;
10 
11 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
12  int use_private, const u8 *in, size_t inlen,
13  u8 *out, size_t *outlen);
14 int pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key,
15  const u8 *in, size_t inlen,
16  u8 *out, size_t *outlen);
17 int pkcs1_decrypt_public_key(struct crypto_rsa_key *key,
18  const u8 *crypt, size_t crypt_len,
19  u8 *plain, size_t *plain_len);
20 int pkcs1_v15_sig_ver(struct crypto_public_key *pk,
21  const u8 *s, size_t s_len,
22  const struct asn1_oid *hash_alg,
23  const u8 *hash, size_t hash_len);
24 
25 #endif /* PKCS1_H */
Definition: crypto_libtomcrypt.c:403
Definition: asn1.h:49
Definition: rsa.c:13