xref: /third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/rsa.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
1e5b75505Sopenharmony_ci/*
2e5b75505Sopenharmony_ci * RSA
3e5b75505Sopenharmony_ci * Copyright (c) 2006, Jouni Malinen <j@w1.fi>
4e5b75505Sopenharmony_ci *
5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license.
6e5b75505Sopenharmony_ci * See README for more details.
7e5b75505Sopenharmony_ci */
8e5b75505Sopenharmony_ci
9e5b75505Sopenharmony_ci#ifndef RSA_H
10e5b75505Sopenharmony_ci#define RSA_H
11e5b75505Sopenharmony_ci
12e5b75505Sopenharmony_cistruct crypto_rsa_key;
13e5b75505Sopenharmony_ci
14e5b75505Sopenharmony_cistruct crypto_rsa_key *
15e5b75505Sopenharmony_cicrypto_rsa_import_public_key(const u8 *buf, size_t len);
16e5b75505Sopenharmony_cistruct crypto_rsa_key *
17e5b75505Sopenharmony_cicrypto_rsa_import_public_key_parts(const u8 *n, size_t n_len,
18e5b75505Sopenharmony_ci				   const u8 *e, size_t e_len);
19e5b75505Sopenharmony_cistruct crypto_rsa_key *
20e5b75505Sopenharmony_cicrypto_rsa_import_private_key(const u8 *buf, size_t len);
21e5b75505Sopenharmony_cisize_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key);
22e5b75505Sopenharmony_ciint crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
23e5b75505Sopenharmony_ci		       struct crypto_rsa_key *key, int use_private);
24e5b75505Sopenharmony_civoid crypto_rsa_free(struct crypto_rsa_key *key);
25e5b75505Sopenharmony_ci
26e5b75505Sopenharmony_ci#endif /* RSA_H */
27

Indexes created Thu Nov 07 10:32:03 CST 2024