Updated documentation
parent
d64eca8aff
commit
89d0581525
|
|
@ -1,4 +1,5 @@
|
||||||
Test Data Format
|
Test Data Format
|
||||||
|
================
|
||||||
|
|
||||||
A test data file is an ASCII text file composed of sections separated by
|
A test data file is an ASCII text file composed of sections separated by
|
||||||
blank lines. Each section is stand-alone and independent of other
|
blank lines. Each section is stand-alone and independent of other
|
||||||
|
|
@ -21,6 +22,7 @@ test should always use the last field with any given name that occurs
|
||||||
before the Test field.
|
before the Test field.
|
||||||
|
|
||||||
Data Types
|
Data Types
|
||||||
|
==========
|
||||||
|
|
||||||
int - small integer (less than 2^32) in decimal representation
|
int - small integer (less than 2^32) in decimal representation
|
||||||
string - human readable string
|
string - human readable string
|
||||||
|
|
@ -32,6 +34,7 @@ encoded string - can be one of the following
|
||||||
r256 0x0011 to repeat 0x0011 256 times
|
r256 0x0011 to repeat 0x0011 256 times
|
||||||
|
|
||||||
Field Types
|
Field Types
|
||||||
|
===========
|
||||||
|
|
||||||
AlgorithmType - string, for example "Signature", "AsymmetricCipher",
|
AlgorithmType - string, for example "Signature", "AsymmetricCipher",
|
||||||
"SymmetricCipher", "MAC", "MessageDigest", or "KeyFactory"
|
"SymmetricCipher", "MAC", "MessageDigest", or "KeyFactory"
|
||||||
|
|
@ -47,9 +50,13 @@ used.
|
||||||
Key - encoded string
|
Key - encoded string
|
||||||
PublicKey - encoded string
|
PublicKey - encoded string
|
||||||
PrivateKey - encoded string
|
PrivateKey - encoded string
|
||||||
|
Modulus - the modulus when KeyFormat=Component
|
||||||
|
SubgroupOrder - the subgroup order when KeyFormat=Component
|
||||||
|
SubgroupGenerator - the subgroup generator when KeyFormat=Component
|
||||||
|
PublicElement - the public element when KeyFormat=Component
|
||||||
|
PrivateExponent - the private exponent when KeyFormat=Component
|
||||||
Message - encoded string, message to be signed or verified
|
Message - encoded string, message to be signed or verified
|
||||||
Signature - encoded string, signature to be verified or compared
|
Signature - encoded string, signature to be verified or compared with
|
||||||
with
|
|
||||||
Plaintext - encoded string
|
Plaintext - encoded string
|
||||||
Ciphertext - encoded string
|
Ciphertext - encoded string
|
||||||
Header - encoded string
|
Header - encoded string
|
||||||
|
|
@ -62,6 +69,7 @@ Seek - int, seek location for random access ciphers
|
||||||
(more to come here)
|
(more to come here)
|
||||||
|
|
||||||
Possible Tests
|
Possible Tests
|
||||||
|
==============
|
||||||
|
|
||||||
KeyPairValidAndConsistent - public and private keys are both valid and
|
KeyPairValidAndConsistent - public and private keys are both valid and
|
||||||
consistent with each other
|
consistent with each other
|
||||||
|
|
@ -73,4 +81,5 @@ NotVerify - signature/digest/MAC verification should not pass
|
||||||
DeterministicSign - sign message using given seed, and the resulting
|
DeterministicSign - sign message using given seed, and the resulting
|
||||||
signature should be equal to the given signature
|
signature should be equal to the given signature
|
||||||
DecryptMatch - ciphertext decrypts to plaintext
|
DecryptMatch - ciphertext decrypts to plaintext
|
||||||
|
|
||||||
(more to come here)
|
(more to come here)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue