Lines Matching refs:rsa
125 RSAPublicKey *rsa; in PublicKeyToRSA() local
138 rsa = RSAPublicKeyFromBuf(GetPublicKeyDataC(key), key->key_size); in PublicKeyToRSA()
139 if (!rsa) in PublicKeyToRSA()
142 rsa->algorithm = (unsigned int)key->algorithm; in PublicKeyToRSA()
143 return rsa; in PublicKeyToRSA()
255 RSAPublicKey *rsa; in KeyBlockVerify() local
265 rsa = PublicKeyToRSA(key); in KeyBlockVerify()
266 if (!rsa) { in KeyBlockVerify()
274 RSAPublicKeyFree(rsa); in KeyBlockVerify()
279 rv = VerifyData((const uint8_t *)block, size, sig, rsa); in KeyBlockVerify()
280 RSAPublicKeyFree(rsa); in KeyBlockVerify()