HomeSort by relevance Sort by last modified time
    Searched refs:EVP_PKEY (Results 1 - 25 of 132) sorted by null

1 2 3 4 5 6

  /external/iperf3/src/
iperf_auth.h 34 EVP_PKEY *load_pubkey_from_file(const char *file);
35 EVP_PKEY *load_pubkey_from_base64(const char *buffer);
36 EVP_PKEY *load_privkey_from_file(const char *file);
37 int encode_auth_setting(const char *username, const char *password, EVP_PKEY *public_key, char **authtoken);
38 int decode_auth_setting(int enable_debug, const char *authtoken, EVP_PKEY *private_key, char **username, char **password, time_t *ts);
iperf_auth.c 156 EVP_PKEY *load_pubkey_from_file(const char *file) {
158 EVP_PKEY *pkey = NULL;
167 EVP_PKEY *load_pubkey_from_base64(const char *buffer) {
174 EVP_PKEY *pkey = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL);
178 EVP_PKEY *load_privkey_from_file(const char *file) {
180 EVP_PKEY *pkey = NULL;
191 EVP_PKEY *key = load_pubkey_from_file(file);
200 EVP_PKEY *key = load_privkey_from_file(file);
208 int encrypt_rsa_message(const char *plaintext, EVP_PKEY *public_key, unsigned char **encryptedtext) {
230 int decrypt_rsa_message(const unsigned char *encryptedtext, const int encryptedtext_len, EVP_PKEY *private_key, unsigned char **plaintext)
    [all...]
  /external/boringssl/src/crypto/evp/
evp.c 74 EVP_PKEY *EVP_PKEY_new(void) {
75 EVP_PKEY *ret;
77 ret = OPENSSL_malloc(sizeof(EVP_PKEY));
83 OPENSSL_memset(ret, 0, sizeof(EVP_PKEY));
90 static void free_it(EVP_PKEY *pkey) {
98 void EVP_PKEY_free(EVP_PKEY *pkey) {
111 int EVP_PKEY_up_ref(EVP_PKEY *pkey) {
116 int EVP_PKEY_is_opaque(const EVP_PKEY *pkey) {
123 int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
    [all...]
internal.h 81 int (*pub_decode)(EVP_PKEY *out, CBS *params, CBS *key);
85 int (*pub_encode)(CBB *out, const EVP_PKEY *key);
87 int (*pub_cmp)(const EVP_PKEY *a, const EVP_PKEY *b);
93 int (*priv_decode)(EVP_PKEY *out, CBS *params, CBS *key);
97 int (*priv_encode)(CBB *out, const EVP_PKEY *key);
101 int (*pkey_opaque)(const EVP_PKEY *pk);
103 int (*pkey_size)(const EVP_PKEY *pk);
104 int (*pkey_bits)(const EVP_PKEY *pk);
106 int (*param_missing)(const EVP_PKEY *pk)
    [all...]
p_ed25519_asn1.c 26 static void ed25519_free(EVP_PKEY *pkey) {
31 static int set_pubkey(EVP_PKEY *pkey, const uint8_t pubkey[32]) {
45 static int set_privkey(EVP_PKEY *pkey, const uint8_t privkey[64]) {
59 static int ed25519_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) {
72 static int ed25519_pub_encode(CBB *out, const EVP_PKEY *pkey) {
92 static int ed25519_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) {
98 static int ed25519_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) {
119 static int ed25519_priv_encode(CBB *out, const EVP_PKEY *pkey) {
146 static int ed25519_size(const EVP_PKEY *pkey) { return 64;
    [all...]
p_rsa_asn1.c 69 static int rsa_pub_encode(CBB *out, const EVP_PKEY *key) {
88 static int rsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) {
111 static int rsa_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) {
116 static int rsa_priv_encode(CBB *out, const EVP_PKEY *key) {
134 static int rsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) {
155 static int rsa_opaque(const EVP_PKEY *pkey) {
159 static int int_rsa_size(const EVP_PKEY *pkey) {
163 static int rsa_bits(const EVP_PKEY *pkey) {
167 static void int_rsa_free(EVP_PKEY *pkey) { RSA_free(pkey->pkey.rsa);
    [all...]
p_ec_asn1.c 68 static int eckey_pub_encode(CBB *out, const EVP_PKEY *key) {
92 static int eckey_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) {
128 static int eckey_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) {
143 static int eckey_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) {
164 static int eckey_priv_encode(CBB *out, const EVP_PKEY *key) {
191 static int int_ec_size(const EVP_PKEY *pkey) {
195 static int ec_bits(const EVP_PKEY *pkey) {
204 static int ec_missing_parameters(const EVP_PKEY *pkey) {
208 static int ec_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
    [all...]
p_dsa_asn1.c 67 static int dsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) {
104 static int dsa_pub_encode(CBB *out, const EVP_PKEY *key) {
127 static int dsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) {
169 static int dsa_priv_encode(CBB *out, const EVP_PKEY *key) {
194 static int int_dsa_size(const EVP_PKEY *pkey) {
198 static int dsa_bits(const EVP_PKEY *pkey) {
202 static int dsa_missing_parameters(const EVP_PKEY *pkey) {
224 static int dsa_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from) {
234 static int dsa_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b)
    [all...]
evp_asn1.c 96 EVP_PKEY *EVP_parse_public_key(CBS *cbs) {
120 // Set up an |EVP_PKEY| of the appropriate type.
121 EVP_PKEY *ret = EVP_PKEY_new();
143 int EVP_marshal_public_key(CBB *cbb, const EVP_PKEY *key) {
152 EVP_PKEY *EVP_parse_private_key(CBS *cbs) {
172 // Set up an |EVP_PKEY| of the appropriate type.
173 EVP_PKEY *ret = EVP_PKEY_new();
195 int EVP_marshal_private_key(CBB *cbb, const EVP_PKEY *key) {
204 static EVP_PKEY *old_priv_decode(CBS *cbs, int type) {
205 EVP_PKEY *ret = EVP_PKEY_new()
    [all...]
print.c 204 static int rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent,
209 static int rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent,
275 static int dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent,
280 static int dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent,
285 static int dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent,
399 static int eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent,
404 static int eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent,
410 static int eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent,
418 int (*pub_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx);
419 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent
    [all...]
  /external/boringssl/src/include/openssl/
evp.h 84 // An |EVP_PKEY| object represents a public or private key. A given object may
92 OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_new(void);
96 OPENSSL_EXPORT void EVP_PKEY_free(EVP_PKEY *pkey);
101 OPENSSL_EXPORT int EVP_PKEY_up_ref(EVP_PKEY *pkey);
106 OPENSSL_EXPORT int EVP_PKEY_is_opaque(const EVP_PKEY *pkey);
113 OPENSSL_EXPORT int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
117 OPENSSL_EXPORT int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from);
121 OPENSSL_EXPORT int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey)
    [all...]
pkcs8.h 92 // an |EVP_PKEY| and writes the serialized EncryptedPrivateKeyInfo to |out|. It
97 const EVP_PKEY *pkey);
116 // returns a newly-allocated |EVP_PKEY| on success and zero on error.
117 OPENSSL_EXPORT EVP_PKEY *PKCS8_parse_encrypted_private_key(CBS *cbs,
125 OPENSSL_EXPORT int PKCS12_get_key_and_certs(EVP_PKEY **out_key,
178 EVP_PKEY **out_pkey, X509 **out_cert,
204 const EVP_PKEY *pkey, X509 *cert,
  /external/boringssl/src/crypto/pem/
pem_all.c 120 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
121 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
122 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey);
132 * read in an EVP_PKEY structure with PEM_read_bio_PrivateKey() and extract
136 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa)
155 EVP_PKEY *pktmp;
164 EVP_PKEY *pktmp;
180 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa)
199 EVP_PKEY *pktmp;
211 EVP_PKEY *pktmp
    [all...]
pem_pk8.c 68 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder,
71 static int do_pk8pkey_fp(FILE *bp, EVP_PKEY *x, int isder,
82 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,
89 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
96 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
103 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid,
110 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid,
156 EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb,
162 EVP_PKEY *ret
    [all...]
pem_pkey.c 72 EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb,
79 EVP_PKEY *ret = NULL;
93 EVP_PKEY_free((EVP_PKEY *)*x);
123 EVP_PKEY_free((EVP_PKEY *)*x);
147 int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
155 EVP_PKEY *PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb,
163 EVP_PKEY *ret = PEM_read_bio_PrivateKey(b, x, cb, u);
168 int PEM_write_PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc
    [all...]
  /external/libchrome/crypto/
rsa_private_key.h 37 // Create a new instance from an existing EVP_PKEY, taking a
40 static std::unique_ptr<RSAPrivateKey> CreateFromKey(EVP_PKEY* key);
42 EVP_PKEY* key() { return key_.get(); }
57 bssl::UniquePtr<EVP_PKEY> key_;
ec_private_key.h 55 EVP_PKEY* key() { return key_.get(); }
78 bssl::UniquePtr<EVP_PKEY> key_;
  /external/boringssl/src/crypto/x509/
internal.h 33 int x509_rsa_pss_to_ctx(EVP_MD_CTX *ctx, X509_ALGOR *sigalg, EVP_PKEY *pkey);
59 EVP_PKEY *pkey);
x_pubkey.c 72 /* Minor tweak to operation: free up EVP_PKEY */
90 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
133 EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key)
135 EVP_PKEY *ret = NULL;
184 * Now two pseudo ASN1 routines that take an EVP_PKEY structure and encode or
188 EVP_PKEY *d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, long length)
191 EVP_PKEY *pktmp;
206 int i2d_PUBKEY(const EVP_PKEY *a, unsigned char **pp)
212 if (!X509_PUBKEY_set(&xpk, (EVP_PKEY *)a)
    [all...]
x_all.c 70 int X509_verify(X509 *a, EVP_PKEY *r)
80 int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r)
86 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
101 int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md)
114 int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md)
129 int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md)
135 int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *x, EVP_PKEY *pkey)
357 int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key)
369 IMPLEMENT_D2I_FP(EVP_PKEY, d2i_PrivateKey_fp, d2i_PrivateKey_bio)
370 IMPLEMENT_I2D_FP(EVP_PKEY, i2d_PrivateKey_fp, i2d_PrivateKey_bio
    [all...]
i2d_pr.c 66 int i2d_PrivateKey(const EVP_PKEY *a, uint8_t **pp)
x509rset.c 76 int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey)
  /external/boringssl/src/crypto/rsa_extra/
rsa_print.c 16 EVP_PKEY *pkey = EVP_PKEY_new();
  /external/webrtc/webrtc/base/
opensslidentity.h 27 // OpenSSLKeyPair encapsulates an OpenSSL EVP_PKEY* keypair object,
31 explicit OpenSSLKeyPair(EVP_PKEY* pkey) : pkey_(pkey) {
41 EVP_PKEY* pkey() const { return pkey_; }
46 EVP_PKEY* pkey_;
  /device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/include/
key.h 47 EVP_PKEY *key; /* Key container */

Completed in 438 milliseconds

1 2 3 4 5 6