Home | History | Annotate | Download | only in keystore-engine

Lines Matching refs:dsa

29 #define LOG_TAG "OpenSSL-keystore-dsa"
35 #include <openssl/dsa.h>
50 static DSA_SIG* keystore_dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) {
51 ALOGV("keystore_dsa_do_sign(%p, %d, %p)", dgst, dlen, dsa);
53 uint8_t* key_id = reinterpret_cast<uint8_t*>(DSA_get_ex_data(dsa, dsa_key_handle));
68 int num = DSA_size(dsa);
96 ALOGV("keystore_dsa_do_sign(%p, %d, %p) => returning %p len %zu", dgst, dlen, dsa,
125 Unique_DSA dsa(EVP_PKEY_get1_DSA(pkey));
126 if (!DSA_set_ex_data(dsa.get(), dsa_key_handle, reinterpret_cast<void*>(strdup(key_id)))) {
127 ALOGW("Could not set ex_data for loaded DSA key");
131 DSA_set_method(dsa.get(), &keystore_dsa_meth);
139 dsa->engine = e;
147 ALOGE("Could not set up keystore DSA methods");