Skip to content
Snippets Groups Projects
Commit 0efee4cd authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Crypto.RSA: Fixed warnings with old Nettle. Fixes remainder of [bug 7469].

parent 79fcb2e6
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ class State { ...@@ -160,7 +160,7 @@ class State {
// Generate a prime with @[bits] number of bits using random function // Generate a prime with @[bits] number of bits using random function
// @[r]. // @[r].
protected Gmp.mpz get_prime(int bits, function(int:string(8bit)) r) protected Gmp.mpz get_prime(int bits, function(int(0..):string(8bit)) r)
{ {
int len = (bits + 7) / 8; int len = (bits + 7) / 8;
int bit_to_set = 1 << ( (bits - 1) % 8); int bit_to_set = 1 << ( (bits - 1) % 8);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment