[openssl-dev] [openssl.org #4472] [PATCH] alllowing wrap mode using enc command

Michel via RT rt at openssl.org
Tue Mar 22 21:51:05 UTC 2016


Hi,

Here attached is some test data files and a patch against today's git repo
to allow for the use of wrap mode using the OpenSSL 'enc' command.

The 'raw*.dat' files contains the NIST test vectors, and the '*.ok.enc' the
expected encrypted result (base64 encoded with equivalent hexa value).
The testwrap.cmds file is a small Windows script (.bat) with tests commands.

As mentioned in a previous post, It may not be the best way to achieve this,
in which case I would be happy to learn how to do it better.

Meanwhile, It is usefull (at least for me :-) to decrypt wrapped symetric
keys using OpenSSL 1.1.

Regards,

Michel.


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4472
Please log in as guest with password guest if prompted

-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw128.dat
Type: application/octet-stream
Size: 16 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0011.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw192.dat
Type: application/octet-stream
Size: 24 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0012.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw256.dat
Type: application/octet-stream
Size: 32 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0013.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap-128-128.ok.enc
Type: application/octet-stream
Size: 105 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0014.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap-128-192.ok.enc
Type: application/octet-stream
Size: 105 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0015.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap-128-256.ok.enc
Type: application/octet-stream
Size: 105 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0016.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap-192-192.ok.enc
Type: application/octet-stream
Size: 141 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0017.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap-192-256.ok.enc
Type: application/octet-stream
Size: 141 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0018.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap-256-256.ok.enc
Type: application/octet-stream
Size: 178 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0019.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enc-wrap-1.1.0.patch
Type: application/octet-stream
Size: 2050 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0020.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testwrap.cmds
Type: application/octet-stream
Size: 1897 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160322/6bb8603f/attachment-0021.obj>


More information about the openssl-dev mailing list