Lines Matching refs:key
160 BIO *key = NULL; in load_pubkey_from_file() local
164 key = BIO_new_file(file, "r"); in load_pubkey_from_file()
165 pkey = PEM_read_bio_PUBKEY(key, NULL, NULL, NULL); in load_pubkey_from_file()
167 BIO_free(key); in load_pubkey_from_file()
173 unsigned char *key = NULL; in load_pubkey_from_base64() local
175 Base64Decode(buffer, &key, &key_len); in load_pubkey_from_base64()
178 BIO_write(bio, key, key_len); in load_pubkey_from_base64()
179 free(key); in load_pubkey_from_base64()
186 BIO *key = NULL; in load_privkey_from_file() local
190 key = BIO_new_file(file, "r"); in load_privkey_from_file()
191 pkey = PEM_read_bio_PrivateKey(key, NULL, NULL, NULL); in load_privkey_from_file()
193 BIO_free(key); in load_privkey_from_file()
199 unsigned char *key = NULL; in load_privkey_from_base64() local
201 Base64Decode(buffer, &key, &key_len); in load_privkey_from_base64()
204 BIO_write(bio, key, key_len); in load_privkey_from_base64()
205 free(key); in load_privkey_from_base64()
212 EVP_PKEY *key = load_pubkey_from_file(file); in test_load_pubkey_from_file() local
213 if (key == NULL){ in test_load_pubkey_from_file()
216 EVP_PKEY_free(key); in test_load_pubkey_from_file()
221 EVP_PKEY *key = load_privkey_from_file(file); in test_load_private_key_from_file() local
222 if (key == NULL){ in test_load_private_key_from_file()
225 EVP_PKEY_free(key); in test_load_private_key_from_file()