[PATCH 0/3] scute: Implement C_GenerateRandom function.

Damien Goutte-Gattat dgouttegattat at incenp.org
Tue Mar 29 16:44:36 CEST 2016


Hi GnuPG developers,

The following set of patches for Scute implements the C_GenerateRandom
function from PKCS#11. Mozilla's NSS library uses that function to
provide 32 bytes bytes of entropy to its own PRNG, when the token is
first inserted.

Damien Goutte-Gattat (3):
  Implement C_GenerateRandom.
  Check whether the card has a RNG.
  Add test for C_GenerateRandom.

 src/agent.c              |  28 +++++++++++++
 src/agent.h              |   5 +++
 src/p11-generaterandom.c |  28 ++++++++++---
 src/p11-gettokeninfo.c   |   7 +++-
 src/slots.c              |   9 ++++
 src/slots.h              |   3 ++
 tests/Makefile.am        |   2 +-
 tests/t-generaterandom.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 179 insertions(+), 8 deletions(-)
 create mode 100644 tests/t-generaterandom.c

-- 
2.7.4




More information about the Gnupg-devel mailing list