aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-25 21:15:44 +0000
committerlloyd <[email protected]>2008-05-25 21:15:44 +0000
commite3512f9802481e95383db381228bc683da34d790 (patch)
tree7609cc0cc9a5018c2db4dfaa16b476a8eb5cb5eb
parentb69a04df1aff3e7a5d035f219453c7b261036e93 (diff)
Update EME_PKCS1v15::pad to use next_byte API
-rw-r--r--src/eme_pkcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eme_pkcs.cpp b/src/eme_pkcs.cpp
index cd82c09d3..9a9f463ea 100644
--- a/src/eme_pkcs.cpp
+++ b/src/eme_pkcs.cpp
@@ -26,7 +26,7 @@ SecureVector<byte> EME_PKCS1v15::pad(const byte in[], u32bit inlen,
out[0] = 0x02;
for(u32bit j = 1; j != olen - inlen - 1; ++j)
while(out[j] == 0)
- out[j] = rng.random();
+ out[j] = rng.next_byte();
out.copy(olen - inlen, in, inlen);
return out;