[ << ]  [ < ]  [ Up ]  [ > ]  [ >> ]  [Top]  [Contents]  [Index]  [ ? ] 
A.1.5 Public Key Algorithm PowerUp Tests
The public key algorithms are tested during powerup:
 RSA
A predefined 1024 bit RSA key is used and these tests are run in turn:

Conversion of Sexpression to internal format.
(
cipher/rsa.c:selftests_rsa
) 
Private key consistency check.
(
cipher/rsa.c:selftests_rsa
) 
A predefined 20 byte value is signed with PKCS#1 padding for SHA1.
The result is verified using the public key against the original data
and against modified data. (
cipher/rsa.c:selftest_sign_1024
) 
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
)

Conversion of Sexpression to internal format.
(
 DSA
A predefined 1024 bit DSA key is used and these tests are run in turn:

Conversion of Sexpression to internal format.
(
cipher/dsa.c:selftests_dsa
) 
Private key consistency check.
(
cipher/dsa.c:selftests_dsa
) 
A predefined 20 byte value is signed with PKCS#1 padding for
SHA1. The result is verified using the public key against the
original data and against modified data.
(
cipher/dsa.c:selftest_sign_1024
)

Conversion of Sexpression to internal format.
(
This document was generated on February 9, 2014 using texi2html 5.0.