manpagez: man pages & more
info gcrypt
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A.1.5 Public Key Algorithm Power-Up Tests

The public key algorithms are tested during power-up:

RSA

A pre-defined 1024 bit RSA key is used and these tests are run in turn:

  1. Conversion of S-expression to internal format. (cipher/rsa.c:selftests_rsa)
  2. Private key consistency check. (cipher/rsa.c:selftests_rsa)
  3. A pre-defined 20 byte value is signed with PKCS#1 padding for SHA-1. The result is verified using the public key against the original data and against modified data. (cipher/rsa.c:selftest_sign_1024)
  4. A 1000 bit random value is encrypted and checked that it does not match the original random value. The encrypted result is then decrypted and checked that it matches the original random value. (cipher/rsa.c:selftest_encr_1024)
DSA

A pre-defined 1024 bit DSA key is used and these tests are run in turn:

  1. Conversion of S-expression to internal format. (cipher/dsa.c:selftests_dsa)
  2. Private key consistency check. (cipher/dsa.c:selftests_dsa)
  3. A pre-defined 20 byte value is signed with PKCS#1 padding for SHA-1. The result is verified using the public key against the original data and against modified data. (cipher/dsa.c:selftest_sign_1024)

This document was generated on February 9, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.