smuellerDD / acvpparser

ACVP Parser for invocation of cryptographic implementations using the ACVP JSON test vectors
https://www.chronox.de/acvpparser
Other
36 stars 27 forks source link

Support for KW and KWP in inverse mode #28

Closed sikkamukul closed 3 years ago

sikkamukul commented 3 years ago

The Parser contains support for KW and KWP only in Cipher mode

Support for inverse mode is missing

Input Json file contains "KwCipher" field to show the mode

Added support for "KwCipher" field into the parser

Input Test Vector format

"keyLen": ..., "tgId": 1, "testType": "AFT", "direction": "encrypt/decrypt", "kwCipher": "cipher/inverse", "payloadLen": ..., "tests": [ { "tcId": 1, "key": "..." "pt/ct": "..." } ]

Parser doesn't support for decryption cases in which integrity error occurs

if integrity error occurs testPassed printed as false else pt is printed

smuellerDD commented 3 years ago

Applied, thanks.