From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sg2apc01on0056.outbound.protection.outlook.com [104.47.125.56]) by dpdk.org (Postfix) with ESMTP id 3E5E72BCE for ; Tue, 12 Jul 2016 05:01:40 +0200 (CEST) Received: from PS1PR03MB1883.apcprd03.prod.outlook.com (10.167.49.153) by PS1PR03MB1882.apcprd03.prod.outlook.com (10.167.49.152) with Microsoft SMTP Server (TLS) id 15.1.539.14; Tue, 12 Jul 2016 03:01:37 +0000 Received: from PS1PR03MB1883.apcprd03.prod.outlook.com ([10.167.49.153]) by PS1PR03MB1883.apcprd03.prod.outlook.com ([10.167.49.153]) with mapi id 15.01.0539.018; Tue, 12 Jul 2016 03:01:36 +0000 From: To: , Thread-Topic: dpdk-users] [Snow 3g Hash API] Thread-Index: AdHZKQxqKk0ynvrhSPm1Hx6v9MJ9iACXRPfgABjEZ8A= Date: Tue, 12 Jul 2016 03:01:36 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=amartya.das@wipro.com; x-originating-ip: [125.16.242.6] x-ms-office365-filtering-correlation-id: 197329d6-cf03-441c-892a-08d3aa00d6ce x-microsoft-exchange-diagnostics: 1; PS1PR03MB1882; 6:oIjndglBoV7sTshSs0N7cY8BW94Zge75y/28mkpAAS6++K7ZaTz+jJ5wZjK8+/Ew2VJaq8K0wpcnGbUxKMearV/u2dqy7sI2AzQpPZ88XyJM9cFV+zq1y6asQittvbbQsd6t9RjjTTTLcizJUy1s++5qU6wSXDDjmAeS7ZVsDiSBP6SBLczsEucfLJ7Ck/CmiRb212fWjcuPRZGrZh+pn1Gx9TQOORcSyacUEHOUVUh6hCpxk0ptwdlFsCj9PDlMOmlLixB/QHvEZxioOcdBG/77MW9WsWXs/3qXzBTdAUVQ40QrHZeJS7uzLUs4SH64+RJvN1PwtjY064MiFT3cmg==; 5:/i8LFMKlONHOl0TB9iXQvfaLmAjWcztA7BvRJezLwB8Q6pcozDV+Gsi3NJ3ok1xd0PnERKsN2K/14bCwyrB4iKOvIj6zOLLRBIViwQF46v2woJO6gLl2qBKcbTGqF7n4N6tCQManJjfy0mmOq8yW7w==; 24:l7q23ff/VYLja3PMb6jd2uzZ/BtqvI1E5Ee7lFUP/z3GHdU/CMYl7/EOkO4OHpGDME0egSTb0CYfP7vIdaoZ7sTGQF8ySSMPwTB7jFYEd2Y=; 7:qQ5wOYWgQC41R9mxKyTRHGGlOANp7GSI3YvVQxN1EBpe2LZfLk+Urd6PRPz2PvQ57FuQmvPsuMhKIzvsPJwXTYY0C67aU3eFY6x2nnfvweHWQkIAuYWwYQCGdGyni3qVvXvE43f9n9BMZu1fv/V4schNOfF4/vVOlumV1kZ3xtQnRlfAre7+gzorwOJHgKOxdaphlcbhVGLHrB6gfVzrl3POQd/PHk27XLIplRoZIAKuHrPnr6VInXRFPxmfS5tP x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:PS1PR03MB1882; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(267259832677123)(62627912741753)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(61426038)(61427038); SRVR:PS1PR03MB1882; BCL:0; PCL:0; RULEID:; SRVR:PS1PR03MB1882; x-forefront-prvs: 0001227049 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(51874003)(13464003)(189002)(199003)(377454003)(19580395003)(2906002)(8676002)(68736007)(92566002)(107886002)(77096005)(2501003)(189998001)(33656002)(106356001)(19580405001)(5002640100001)(7736002)(3846002)(102836003)(6116002)(7696003)(5003600100003)(305945005)(3660700001)(7846002)(76576001)(15974865002)(3280700002)(87936001)(122556002)(5001770100001)(9686002)(586003)(97736004)(2900100001)(2950100001)(81166006)(5890100001)(81156014)(8936002)(74316002)(101416001)(76176999)(66066001)(50986999)(54356999)(86362001)(105586002)(10400500002)(18886075002); DIR:OUT; SFP:1101; SCL:1; SRVR:PS1PR03MB1882; H:PS1PR03MB1883.apcprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: wipro.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wipro.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jul 2016 03:01:36.8562 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 258ac4e4-146a-411e-9dc8-79a9e12fd6da X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR03MB1882 X-MS-Exchange-CrossPremises-AuthAs: Internal X-MS-Exchange-CrossPremises-AuthMechanism: 04 X-MS-Exchange-CrossPremises-AuthSource: PS1PR03MB1883.apcprd03.prod.outlook.com X-MS-Exchange-CrossPremises-SCL: 1 X-MS-Exchange-CrossPremises-messagesource: StoreDriver X-MS-Exchange-CrossPremises-BCC: X-MS-Exchange-CrossPremises-originalclientipaddress: 125.16.242.6 X-MS-Exchange-CrossPremises-avstamp-service: 1.0 X-MS-Exchange-CrossPremises-disclaimer-hash: ef6ed6a830673538406bd527e716551fd2daba1e446b50e7f1f30c79ce70f874 X-MS-Exchange-CrossPremises-antispam-scancontext: DIR:Originating; SFV:NSPM; SKIP:0; X-MS-Exchange-CrossPremises-processed-by-journaling: Journal Agent X-OrganizationHeadersPreserved: PS1PR03MB1882.apcprd03.prod.outlook.com Subject: Re: [dpdk-users] dpdk-users] [Snow 3g Hash API] X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 03:01:41 -0000 Thanks. I saw the libsso code. As made the changes accordingly and its work= ing now. IV_0 =3D (count) (4 bytes) IV_1 =3D (fresh) (4 bytes) IV_2 =3D (count^(dir<<31)) (4 bytes) IV_3 =3D (fresh^(dir<<15)) (4 bytes) BRs Amartya -----Original Message----- From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com] Sent: Monday, July 11, 2016 8:49 PM To: Amartya Kumar Das (MFG & Tech) ; users@dpdk.org Subject: RE: dpdk-users] [Snow 3g Hash API] ** This mail has been sent from an external source ** Hi Amartya, > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of > amartya.das@wipro.com > Sent: Friday, July 08, 2016 3:58 PM > To: users@dpdk.org > Subject: [dpdk-users] dpdk-users] [Snow 3g Hash API] > > 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 =3D { > .key =3D { > .data =3D > {0xe4,0xa8,0x46,0x48,0x1e,0xbd,0x10,0x26,0x70,0xe2,0x3a,0xc0,0x32,0xfb > ,0xc > a,0xe0}, > .len =3D 16 > }, > > .aad =3D { > .data =3D { > 0x00, 0x00, 0x00, 0x00, 0= x00, 0x00, 0x00, 0x00, > 0x00, 0x00, 0x00, 0x00, 0= x00, 0x00, 0x00, 0x00 > }, > .len =3D 16 > }, > > .plaintext =3D { > .data =3D {0x83, 0x32, 0x00, 0x10}, > .len =3D 32 > }, > .validAuthLenInBits =3D { > .len =3D 32 > }, > .validAuthOffsetLenInBits =3D { > .len =3D 128 > }, > .digest =3D { > .data =3D {0x38, 0xB5, 0x54, 0xC0 }, > .len =3D 4 > } > }; > > > However, I want to test with count =3D 1024, dir =3D 01, fresh =3D 0 as p= er > 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. The AAD is the IV passed to the Snow3G f9 function. >>From the 3GPP specifications, the IV is (from MSB to LSB): IV_3 =3D COUNT[0-31] IV_2 =3D FRESH[0-31] IV_1 =3D DIRECTION[0] XOR COUNT[0] || COUNT[1-31] IV_0 =3D FRESH[0-31] So, in your case: IV =3D 0x00000400, 0x00000000, 0x80000400, 0x00000000 Pablo > > 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 ma= y contain proprietary, confidential or privileged information. If you are n= ot the intended recipient, you should not disseminate, distribute or copy t= his e-mail. Please notify the sender immediately and destroy all copies of = this message and any attachments. WARNING: Computer viruses can be transmit= ted via email. The recipient should check this email and any attachments fo= r the presence of viruses. The company accepts no liability for any damage = caused by any virus transmitted by this email. www.wipro.com