Lines Matching refs:rf
141 int (*rf)(void *, size_t); in generate_dsa_key() local
143 rf = rfunc; in generate_dsa_key()
144 if (rf == NULL) { in generate_dsa_key()
146 rf = random_get_pseudo_bytes; in generate_dsa_key()
148 rf = pkcs11_get_urandom; in generate_dsa_key()
152 if ((err = big_random(&(key->x), DSA_SUBPRIME_BITS, rf)) != in generate_dsa_key()
263 int (*rf)(void *, size_t); in dsa_sign() local
333 rf = bkey->rfunc; in dsa_sign()
334 if (rf == NULL) { in dsa_sign()
336 rf = random_get_pseudo_bytes; in dsa_sign()
338 rf = pkcs11_get_urandom; in dsa_sign()
341 if ((brv = big_random(&(dsakey.k), DSA_SUBPRIME_BITS, rf)) != BIG_OK) { in dsa_sign()