aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc/security
AgeCommit message (Collapse)AuthorFilesLines
2021-03-31[CICN-36] Add missing signing algorithm in libparcOlivier Roques1-0/+2
Signed-off-by: Olivier Roques <oroques+fdio@cisco.com> Change-Id: I528992dc16e57cbd258a0da945dc3f4de3f2799b
2020-01-30[HICN-489] Add iOS support to hicn stackAngelo Mantellini5-5/+10
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: Ibd3337e7336eefaaf425dffc4775a0c40499158b
2020-01-08[CICN-27] Fix invalid pointer deallocOlivier Roques1-2/+0
There is a deallocation of an invalid pointer in the destructor of an in-memory verifier object. This function is called by the destructor of consumer socket which fails because of that. The bug is visible only on Ubuntu 16.04. The bug was introduced in CICN-26 as an artifact of attempts to fix memory leaks in Android. There is no good reason to keep the changes causing the problem and the concerned lines can be safely removed. Signed-off-by: Olivier Roques <oroques+fdio@cisco.com> Change-Id: Ibcde7dd7510d76f5aa91e5967a4261ec7eb49108
2019-12-13[CICN-26] Add support for HMACOlivier Roques2-23/+34
Add support for HMAC, a symmetric signature algorithm, and fix various bugs. Signed-off-by: Olivier Roques <olvrqs@gmail.com> Change-Id: Ic73e1f68813500fb37a8da4286424875438040f3
2019-03-08Correct issue on windows. The file descriptor is closed by fclose.Angelo Mantellini1-0/+2
Change-Id: If33a88e3713cb93378536a90a9bc4a4eb8c42b40 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-03-08[CICN-19] Fixed missing allocation for holding the signature in SignDigestAlberto Compagno1-2/+2
Change-Id: Ie7bcb3c0404caffb11037b4c72f954d88c9c1e0e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-02-13Reintroduced for backward compatibility the old api for signing packets that ↵Alberto Compagno6-18/+165
allocates the buffer holding the signature. Change-Id: I7ee9089b5cb1ec21fd0c5c27f9ee391cc294266b Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-02-07Code cleanupAlberto Compagno2-4/+1
Change-Id: Ia032d574a84db8688445567657bd2f970d79cbb3 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-02-06[HICN-26] Windows compatibilty for libparcAngelo Mantellini63-50/+64
Change-Id: I6ebff82a81a2bf42fa3bf210ff0e6e530ce21915 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-02-06[CICN-14] Removed copy of signature in libparc. The api now accepts a ↵Alberto Compagno4-27/+30
pointer to a buf where it stores the computed signature Change-Id: I4427a6399b5e74197303bade4f96ea74b370b07b Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-01-17add clang directives to avoid warningsAngelo Mantellini3-1/+7
Change-Id: I1ed298176ad1403ed089177a3cce4264f028bbbd Signed-off-by: Angelo Mantellini <angelo.mantellini@irt-systemx.fr>
2019-01-16removed longbow dependencyGiovanni Conte32-186/+169
Change-Id: I0c224b26261c7b24699410fc5e41ed6f3fab9815 Signed-off-by: Giovanni Conte <gconte@cisco.com>
2018-11-26Added support for openssl 1.1.1Alberto Compagno3-4/+11
Change-Id: I596fd56152c32106c5279fc3033d48164328a903 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2018-06-20Solved memory leaks in parc_PublicKeySigner.cMauro Sardara1-0/+3
Change-Id: Icef730d16a5d0d4e6b077627ae23bd1c4e73996f Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
2018-05-10Fixes for ECDSA signatureMauro Sardara2-1/+3
Change-Id: I0345d16e22024419e0a538c0a09376ef74b8e440 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
2018-05-08Changed signature of parcIdentity_CreateSigner to add the crypto hash typeDevel2-4/+4
Change-Id: Ie696780bf85100733c8704f5c8a606bb100eef58 Signed-off-by: Devel <acompagn+fdio@cisco.com>
2018-05-08Removed cryptosuite as required parameter while reading p12. Added hashtypeDevel4-7/+6
Change-Id: I5628c4e34b236b02e2c524194735f67024014000 Signed-off-by: Devel <acompagn+fdio@cisco.com>
2018-04-16Merge "Added method to retrieve the signature length from the signer. Fixed ↵Alberto Compagno10-46/+132
bug on parc-publickey" into cframework/master
2018-04-16Added method to retrieve the signature length from the signer. Fixed bug on ↵Devel10-46/+132
parc-publickey Change-Id: If188601e83d0cebf42d2e868e1dce430eabfa1f2 Signed-off-by: Devel <acompagn+fdio@cisco.com>
2018-04-15Fixed bug in parcCryptoSuite_GetFromSigningHash()Mauro Sardara1-3/+3
Change-Id: I809091ebef73c00e6062620045d5419e721945b9 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
2018-04-14Merge "Added method to retrieve a PARCCryptoSuite from a ↵Mauro Sardara12-64/+132
PARCSigningAlgorithm and a PARCCryptoHashType" into cframework/master
2018-04-14Added method to retrieve a PARCCryptoSuite from a PARCSigningAlgorithm and a ↵Devel12-64/+132
PARCCryptoHashType Change-Id: I98124a9315470ec2335dbc9dc079575c67f239c1 Signed-off-by: Devel <acompagn+fdio@cisco.com>
2018-04-14Added const to char pointers in parc_CertificateFactory.[ch]Mauro Sardara2-2/+2
Change-Id: Ib3cd60a8401c647352c198e26254cee7304a834d Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
2018-04-12Added signature calculation and verification for ECDSADevel51-209/+2597
Change-Id: I946e146b9a6ae33ee294a09417e8366853faa502 Signed-off-by: Devel <acompagn+fdio@cisco.com>
2018-04-03Added missing definition about InMemoryVerifierInterfaceAlberto Compagno1-0/+1
Change-Id: I8324c92894ab4f7b6f74570b03f1da6d4773f5a3 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2017-05-11Adding missing binaries to package.Mauro Sardara1-3/+3
Change-Id: Ic31e60ea2309e32a6a0ec5b4625df5500099a793 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
2017-02-23Initial commit: cframework. Longbow and LibparcLuca Muscariello128-0/+18088
Change-Id: I90378dbd30da6033b20fb1f829b3b822cf366c59 Signed-off-by: Luca Muscariello <lumuscar+fdio@cisco.com>