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

Openssh acvp test results not matching #26

Closed Nagarjuna-jantali closed 3 years ago

Nagarjuna-jantali commented 3 years ago

Hi,

I used this driver code to generate responses but the results are not matching with the expected values , any help in debugging will be useful.

[SHA-1] [shared secret length = 2048] [IV length = 128] [encryption key length = 128]

COUNT = 0 K = 0000010100d6c5f7cbe16912221fa5f7cc4b555e5b254e981236131d23ef9d028419ec7c8e40f928ce293ef2e1f757f687206df047323d282960ad259bfff70876fa524c173d32fbaa5cb2e5a5120ff0a3b5ddf3103ac73923feaec531331325e2a07068cdbac7121e9e37e24102355583aa65ee676e7050e337b4f0d27f8e78df091fb970f1c02d292a3871ef8d7f4e02b03bea5bc28498008c144efb464c7a4e49fe6d6c3088819ade8480376dff01eaac19cd732bb107ee4844c58ffc45f61b766ef6b32c41eb5ae7c12ed6d09bca28214e370715bace6fb7f344cb53637def13913040fb3a288c0f2f31b54aae243563efe2940edde04c36ada233e5a5f283a743bd3f H = e90db56930f1bcdf26794e02fb8869da484454f9 session_id = e90db56930f1bcdf26794e02fb8869da484454f9

Expected values:

Initial IV (client to server) = 61285844e2f6406b606f583ee72b465f Initial IV (server to client) = c901351c920e65f358b1a11674bd88b5 Encryption key (client to server) = e79bc63d93d1e503c69975423fea6440 Encryption key (server to client) = e3cd3893a62e2ff288d98d0b84e490bc Integrity key (client to server) = 9b0d3083f9493b67eec43b69908dac864f090e3f Integrity key (server to client) = 45cd04bb8c44f468b26237bb673483c65b92279f

generated vaules:

./acvptest-kdf -K 0000010100d6c5f7cbe16912221fa5f7cc4b555e5b254e981236131d23ef9d028419ec7c8e40f928ce293ef2e1f757f687206df047323d282960ad259bfff70876fa524c173d32fbaa5cb2e5a5120ff0a3b5ddf3103ac73923feaec531331325e2a07068cdbac7121e9e37e24102355583aa65ee676e7050e337b4f0d27f8e78df091fb970f1c02d292a3871ef8d7f4e02b03bea5bc28498008c144efb464c7a4e49fe6d6c3088819ade8480376dff01eaac19cd732bb107ee4844c58ffc45f61b766ef6b32c41eb5ae7c12ed6d09bca28214e370715bace6fb7f344cb53637def13913040fb3a288c0f2f31b54aae243563efe2940edde04c36ada233e5a5f283a743bd3f -H e90db56930f1bcdf26794e02fb8869da484454f9 -s e90db56930f1bcdf26794e02fb8869da484454f9 -i 16 -e 16 -m 20 Initial IV (client to server) = a8dd4444b4ea9b9cac43395ad5ce2584 Initial IV (server to client) = dee9d97bd1e4cb28afb515133606d295 Encryption key (client to server) = 3614e50817427dbaf773e3efe496482b Encryption key (server to client) = 365446cf8e15ac4a52787bf2669fd3f7 Integrity key (client to server) = 995c65feabaf6e3a48cb99e8979fd23ee977e951 Integrity key (server to client) = 36be83ff9918058e7f9db1514f024f56bc713508

Thanks Nag

smuellerDD commented 3 years ago

Am Freitag, dem 18.06.2021 um 00:39 -0700 schrieb Nagarjun:

Hi,

I used this driver code to generate responses but the results are not matching with the expected values , any help in debugging will be useful.

[SHA-1] [shared secret length = 2048] [IV length = 128] [encryption key length = 128]

COUNT = 0 K = 0000010100d6c5f7cbe16912221fa5f7cc4b555e5b254e981236131d23ef9d028419ec7c8e40 f928ce293ef2e1f757f687206df047323d282960ad259bfff70876fa524c173d32fbaa5cb2e5 a5120ff0a3b5ddf3103ac73923feaec531331325e2a07068cdbac7121e9e37e24102355583aa 65ee676e7050e337b4f0d27f8e78df091fb970f1c02d292a3871ef8d7f4e02b03bea5bc28498 008c144efb464c7a4e49fe6d6c3088819ade8480376dff01eaac19cd732bb107ee4844c58ffc 45f61b766ef6b32c41eb5ae7c12ed6d09bca28214e370715bace6fb7f344cb53637def139130 40fb3a288c0f2f31b54aae243563efe2940edde04c36ada233e5a5f283a743bd3f H = e90db56930f1bcdf26794e02fb8869da484454f9 session_id = e90db56930f1bcdf26794e02fb8869da484454f9

Expected values:

Initial IV (client to server) = 61285844e2f6406b606f583ee72b465f Initial IV (server to client) = c901351c920e65f358b1a11674bd88b5 Encryption key (client to server) = e79bc63d93d1e503c69975423fea6440 Encryption key (server to client) = e3cd3893a62e2ff288d98d0b84e490bc Integrity key (client to server) = 9b0d3083f9493b67eec43b69908dac864f090e3f Integrity key (server to client) = 45cd04bb8c44f468b26237bb673483c65b92279f

generated vaules:

./acvptest-kdf -K

I do not know this tool.

0000010100d6c5f7cbe16912221fa5f7cc4b555e5b254e981236131d23ef9d028419ec7c8e40 f928ce293ef2e1f757f687206df047323d282960ad259bfff70876fa524c173d32fbaa5cb2e5 a5120ff0a3b5ddf3103ac73923feaec531331325e2a07068cdbac7121e9e37e24102355583aa 65ee676e7050e337b4f0d27f8e78df091fb970f1c02d292a3871ef8d7f4e02b03bea5bc28498 008c144efb464c7a4e49fe6d6c3088819ade8480376dff01eaac19cd732bb107ee4844c58ffc 45f61b766ef6b32c41eb5ae7c12ed6d09bca28214e370715bace6fb7f344cb53637def139130 40fb3a288c0f2f31b54aae243563efe2940edde04c36ada233e5a5f283a743bd3f -H e90db56930f1bcdf26794e02fb8869da484454f9 -s e90db56930f1bcdf26794e02fb8869da484454f9 -i 16  -e 16  -m 20 Initial IV (client to server) = a8dd4444b4ea9b9cac43395ad5ce2584 Initial IV (server to client) = dee9d97bd1e4cb28afb515133606d295 Encryption key (client to server) = 3614e50817427dbaf773e3efe496482b Encryption key (server to client) = 365446cf8e15ac4a52787bf2669fd3f7 Integrity key (client to server) = 995c65feabaf6e3a48cb99e8979fd23ee977e951 Integrity key (server to client) = 36be83ff9918058e7f9db1514f024f56bc713508

Thanks Nag

Nagarjuna-jantali commented 3 years ago

Am Freitag, dem 18.06.2021 um 00:39 -0700 schrieb Nagarjun: Hi, I used this driver code to generate responses but the results are not matching with the expected values , any help in debugging will be useful. [SHA-1] [shared secret length = 2048] [IV length = 128] [encryption key length = 128] COUNT = 0 K = 0000010100d6c5f7cbe16912221fa5f7cc4b555e5b254e981236131d23ef9d028419ec7c8e40 f928ce293ef2e1f757f687206df047323d282960ad259bfff70876fa524c173d32fbaa5cb2e5 a5120ff0a3b5ddf3103ac73923feaec531331325e2a07068cdbac7121e9e37e24102355583aa 65ee676e7050e337b4f0d27f8e78df091fb970f1c02d292a3871ef8d7f4e02b03bea5bc28498 008c144efb464c7a4e49fe6d6c3088819ade8480376dff01eaac19cd732bb107ee4844c58ffc 45f61b766ef6b32c41eb5ae7c12ed6d09bca28214e370715bace6fb7f344cb53637def139130 40fb3a288c0f2f31b54aae243563efe2940edde04c36ada233e5a5f283a743bd3f H = e90db56930f1bcdf26794e02fb8869da484454f9 session_id = e90db56930f1bcdf26794e02fb8869da484454f9 Expected values: ============= Initial IV (client to server) = 61285844e2f6406b606f583ee72b465f Initial IV (server to client) = c901351c920e65f358b1a11674bd88b5 Encryption key (client to server) = e79bc63d93d1e503c69975423fea6440 Encryption key (server to client) = e3cd3893a62e2ff288d98d0b84e490bc Integrity key (client to server) = 9b0d3083f9493b67eec43b69908dac864f090e3f Integrity key (server to client) = 45cd04bb8c44f468b26237bb673483c65b92279f generated vaules: ============= ./acvptest-kdf -K I do not know this tool. 0000010100d6c5f7cbe16912221fa5f7cc4b555e5b254e981236131d23ef9d028419ec7c8e40 f928ce293ef2e1f757f687206df047323d282960ad259bfff70876fa524c173d32fbaa5cb2e5 a5120ff0a3b5ddf3103ac73923feaec531331325e2a07068cdbac7121e9e37e24102355583aa 65ee676e7050e337b4f0d27f8e78df091fb970f1c02d292a3871ef8d7f4e02b03bea5bc28498 008c144efb464c7a4e49fe6d6c3088819ade8480376dff01eaac19cd732bb107ee4844c58ffc 45f61b766ef6b32c41eb5ae7c12ed6d09bca28214e370715bace6fb7f344cb53637def139130 40fb3a288c0f2f31b54aae243563efe2940edde04c36ada233e5a5f283a743bd3f -H e90db56930f1bcdf26794e02fb8869da484454f9 -s e90db56930f1bcdf26794e02fb8869da484454f9 -i 16  -e 16  -m 20 Initial IV (client to server) = a8dd4444b4ea9b9cac43395ad5ce2584 Initial IV (server to client) = dee9d97bd1e4cb28afb515133606d295 Encryption key (client to server) = 3614e50817427dbaf773e3efe496482b Encryption key (server to client) = 365446cf8e15ac4a52787bf2669fd3f7 Integrity key (client to server) = 995c65feabaf6e3a48cb99e8979fd23ee977e951 Integrity key (server to client) = 36be83ff9918058e7f9db1514f024f56bc713508 Thanks Nag

Hello,

I used the same code, i just renamed file .

Thanks, Nag

smuellerDD commented 3 years ago

I would not know off-hand what goes wrong. Thus a debug session would need to be performed.

smuellerDD commented 3 years ago

Closing - in case the issue is still open, please reopen.