DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] [dpdk] [Snow 3g Hash API]
@ 2016-07-08 14:48 amartya.das
  0 siblings, 0 replies; only message in thread
From: amartya.das @ 2016-07-08 14:48 UTC (permalink / raw)
  To: users

Hi,

I am trying to integrate Snow3G API in our stack. I have made a below data dump to be used for unit test:

struct snow3g_hash_test_data snow3g_hash_test_case_2 = {
                .key = {
                                .data = {0xe4,0xa8,0x46,0x48,0x1e,0xbd,0x10,0x26,0x70,0xe2,0x3a,0xc0,0x32,0xfb,0xca,0xe0},
                                .len = 16
                },

                .aad = {
                                .data = {
                                                0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                                0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                                },
                                .len = 16
                },

                .plaintext = {
                                .data = {0x83, 0x32, 0x00, 0x10},
                                .len = 32
                },
                .validAuthLenInBits = {
                                .len = 32
                                },
                .validAuthOffsetLenInBits = {
                                .len = 128
                },
                .digest = {
                                .data = {0x38, 0xB5, 0x54, 0xC0 },
                                .len  = 4
                }
};


However, I want to test with count = 1024, dir = 01, fresh = 0 as per 3gpp test vector . In that case aad.data  value will be changed.

It will be a great help, if anybody could tell what will be add.data value for that and logic to put the data accordingly.

Thanks in advance.

BRs
Amartya

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-08 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-08 14:48 [dpdk-users] [dpdk] [Snow 3g Hash API] amartya.das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).