Lines Matching refs:rsakey
41 ret->rsakey = NULL; in new_sign_key()
124 rsa_key_free(key->rsakey); in buf_get_pub_key()
125 key->rsakey = (rsa_key*)m_malloc(sizeof(rsa_key)); in buf_get_pub_key()
126 ret = buf_get_rsa_pub_key(buf, key->rsakey); in buf_get_pub_key()
128 m_free(key->rsakey); in buf_get_pub_key()
177 rsa_key_free(key->rsakey); in buf_get_priv_key()
178 key->rsakey = (rsa_key*)m_malloc(sizeof(rsa_key)); in buf_get_priv_key()
179 ret = buf_get_rsa_priv_key(buf, key->rsakey); in buf_get_priv_key()
181 m_free(key->rsakey); in buf_get_priv_key()
207 buf_put_rsa_pub_key(pubkeys, key->rsakey); in buf_put_pub_key()
237 buf_put_rsa_priv_key(buf, key->rsakey); in buf_put_priv_key()
254 rsa_key_free(key->rsakey); in sign_key_free()
255 key->rsakey = NULL; in sign_key_free()
371 buf_put_rsa_sign(sigblob, key->rsakey, data, len); in buf_put_sign()
417 if (key->rsakey == NULL) { in buf_verify()
420 return buf_rsa_verify(buf, key->rsakey, data, len); in buf_verify()