summaryrefslogtreecommitdiff
path: root/TestVectors/Readme.txt
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-29 01:11:03 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-29 01:11:03 +0000
commit6ea2796d91ca021f7e8846a1dda8e83edf4b4420 (patch)
tree4375ec78d1e0627ddeb126489fabc98237c78832 /TestVectors/Readme.txt
parentf13e07240c6e3cc1b57e72b18b3ab2ff003217a7 (diff)
downloadcryptopp-6ea2796d91ca021f7e8846a1dda8e83edf4b4420.tar.gz
*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@16 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'TestVectors/Readme.txt')
-rw-r--r--TestVectors/Readme.txt34
1 files changed, 24 insertions, 10 deletions
diff --git a/TestVectors/Readme.txt b/TestVectors/Readme.txt
index a47cd12..664d972 100644
--- a/TestVectors/Readme.txt
+++ b/TestVectors/Readme.txt
@@ -20,7 +20,18 @@ field named Test. In that case the order of the fields is significant. A
test should always use the last field with any given name that occurs
before the Test field.
-Format and Semantics of Fields
+Data Types
+
+int - small integer (less than 2^32) in decimal representation
+string - human readable string
+encoded string - can be one of the following
+ - quoted string: "message" means "message" without the quotes
+ or terminating '\0'
+ - hex encoded string: 0x74657374 or 74657374 means "test"
+ - repeated string: r100 "message" to repeat "message" 100 times, or
+ r256 0x0011 to repeat 0x0011 256 times
+
+Field Types
AlgorithmType - string, for example "Signature", "AsymmetricCipher",
"SymmetricCipher", "MAC", "MessageDigest", or "KeyFactory"
@@ -33,14 +44,16 @@ each component of the key or key pair is specified separately as a name,
value pair, with the names depending on the algorithm being tested.
Otherwise the value names "Key", or "PublicKey" and "PrivateKey" are
used.
-Key - hex encoded string
-PublicKey - hex encoded string
-PrivateKey - hex encoded string
-Message - hex encoded string, message to be signed or verified
-Signature - hex encoded string, signature to be verified or compared
+Key - encoded string
+PublicKey - encoded string
+PrivateKey - encoded string
+Message - encoded string, message to be signed or verified
+Signature - encoded string, signature to be verified or compared
with
-Plaintext - hex encoded string
-Ciphertext - hex encoded string
+Plaintext - encoded string
+Ciphertext - encoded string
+Digest - encoded string
+TruncatedSize - int, size of truncated digest in bytes
(more to come here)
Possible Tests
@@ -49,8 +62,9 @@ KeyPairValidAndConsistent - public and private keys are both valid and
consistent with each other
PublicKeyInvalid - public key validation should not pass
PrivateKeyInvalid - private key validation should not pass
-Verify - signature verification should pass
-NotVerify - signature verification should not pass
+Verify - signature/digest/MAC verification should pass
+VerifyTruncated - truncated digest/MAC verification should pass
+NotVerify - signature/digest/MAC verification should not pass
DeterministicSign - sign message using given seed, and the resulting
signature should be equal to the given signature
DecryptMatch - ciphertext decrypts to plaintext