Lines Matching refs:keydir
55 static int rsa_pem_get_pub_key(const char *keydir, const char *name, RSA **rsap) in rsa_pem_get_pub_key() argument
65 snprintf(path, sizeof(path), "%s/%s.crt", keydir, name); in rsa_pem_get_pub_key()
121 static int rsa_engine_get_pub_key(const char *keydir, const char *name, in rsa_engine_get_pub_key() argument
135 if (keydir) in rsa_engine_get_pub_key()
138 keydir, name); in rsa_engine_get_pub_key()
179 static int rsa_get_pub_key(const char *keydir, const char *name, in rsa_get_pub_key() argument
183 return rsa_engine_get_pub_key(keydir, name, engine, rsap); in rsa_get_pub_key()
184 return rsa_pem_get_pub_key(keydir, name, rsap); in rsa_get_pub_key()
195 static int rsa_pem_get_priv_key(const char *keydir, const char *name, in rsa_pem_get_priv_key() argument
203 snprintf(path, sizeof(path), "%s/%s.key", keydir, name); in rsa_pem_get_priv_key()
232 static int rsa_engine_get_priv_key(const char *keydir, const char *name, in rsa_engine_get_priv_key() argument
246 if (keydir) in rsa_engine_get_priv_key()
249 keydir, name); in rsa_engine_get_priv_key()
290 static int rsa_get_priv_key(const char *keydir, const char *name, in rsa_get_priv_key() argument
294 return rsa_engine_get_priv_key(keydir, name, engine, rsap); in rsa_get_priv_key()
295 return rsa_pem_get_priv_key(keydir, name, rsap); in rsa_get_priv_key()
477 ret = rsa_get_priv_key(info->keydir, info->keyname, e, &rsa); in rsa_sign()
706 ret = rsa_get_pub_key(info->keydir, info->keyname, e, &rsa); in rsa_add_verify_data()