[ << ] | [ < ] | [ 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:
-
Conversion of S-expression to internal format.
(
cipher/rsa.c:selftests_rsa
) -
Private key consistency check.
(
cipher/rsa.c:selftests_rsa
) -
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
) -
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 S-expression to internal format.
(
- DSA
A pre-defined 1024 bit DSA key is used and these tests are run in turn:
-
Conversion of S-expression to internal format.
(
cipher/dsa.c:selftests_dsa
) -
Private key consistency check.
(
cipher/dsa.c:selftests_dsa
) -
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
)
-
Conversion of S-expression to internal format.
(
This document was generated on February 9, 2014 using texi2html 5.0.