aaf/sshsm.git
5 years agoRemove keyconv files to fix the license issue. 50/85850/1 dublin master 4.0.0-ONAP
Manjunath Ranganathaiah [Fri, 19 Apr 2019 20:26:17 +0000 (13:26 -0700)]
Remove keyconv files to fix the license issue.

These files are part of the key conversion tool
that is not used.

Issue-ID: AAF-814

Change-Id: I01e1733329022059e410ad9d7cd390faff09a97c
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoBump up the version 00/84900/1
Manjunath Ranganathaiah [Wed, 10 Apr 2019 16:01:10 +0000 (09:01 -0700)]
Bump up the version

Snapshot images are taged with 4.0.0 now

Change-Id: I57d99a9ac6436308f34aa4df7fa1ed7ea45d9037
Issue-ID: AAF-764
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoFix distcenter build failure 54/84754/1
Manjunath Ranganathaiah [Tue, 9 Apr 2019 21:24:20 +0000 (14:24 -0700)]
Fix distcenter build failure

Create new dir and clone to remove conflict

Change-Id: I07b0f4411ee6707e9ffc57507d6fca85035843dc
Issue-ID: AAF-764
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Fix nightly build failure"
Kiran Kamineni [Tue, 9 Apr 2019 18:58:06 +0000 (18:58 +0000)]
Merge "Fix nightly build failure"

5 years agoFix nightly build failure 29/84729/2
Manjunath Ranganathaiah [Tue, 9 Apr 2019 17:43:03 +0000 (10:43 -0700)]
Fix nightly build failure

Add ssl library path to ldconfig and import build

Change-Id: Iad92bc261747bdf2e8356da1a4e46df6f36fa93a
Issue-ID: AAF-764
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoFix info.yaml build failures 77/84577/1
Kiran Kamineni [Tue, 9 Apr 2019 00:00:47 +0000 (17:00 -0700)]
Fix info.yaml build failures

This patch is to trigger the info.yaml build
It should be green after the latest changes.

Issue-ID: AAF-805
Change-Id: I149949bf8f8d9981b7f4efa18debc292f000f9b5
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Modify the build.sh tp pass jenkins build"
Kiran Kamineni [Fri, 5 Apr 2019 23:32:17 +0000 (23:32 +0000)]
Merge "Modify the build.sh tp pass jenkins build"

5 years agoModify the build.sh tp pass jenkins build 07/84407/1
Pramod Raghavendra Jayathirth [Fri, 5 Apr 2019 14:54:27 +0000 (07:54 -0700)]
Modify the build.sh tp pass jenkins build

Change-Id: I7b7a113816d1680c4cf3b8f93ced58f2157e0b0d
Issue-ID: AAF-793
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoUpdating the docker file to support latest tss 57/79657/11
Pramod Raghavendra Jayathirth [Mon, 4 Mar 2019 14:46:29 +0000 (06:46 -0800)]
Updating the docker file to support latest tss

Issue-ID: AAF-778

Change-Id: I1dce78d4f2a6ab53432652b51989e9dcba5755c5
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoUpgrade Duplicate utility to the latest tss 32/79232/29
Pramod Raghavendra Jayathirth [Tue, 26 Feb 2019 16:41:02 +0000 (08:41 -0800)]
Upgrade Duplicate utility to the latest tss

This patch updates the Duplicate utility to
match with the latest tss stack
Issue-ID: AAF-763

Change-Id: I08a01b193e8cf550fa1cfcbe0781672b3051eb96
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoUpdate SoftHSM v2.0 to the latest version 95/75195/9
Pramod Raghavendra Jayathirth [Wed, 2 Jan 2019 17:59:48 +0000 (09:59 -0800)]
Update SoftHSM v2.0 to the latest version

Change-Id: Ib3ec2c297f897c82776a66fe2ad55b18984c0337
Issue-ID: AAF-687
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoMerge "Upgrade TPM2_Plugin to match with the tss stack"
Kiran Kamineni [Fri, 29 Mar 2019 23:23:13 +0000 (23:23 +0000)]
Merge "Upgrade TPM2_Plugin to match with the tss stack"

5 years agoMerge "Update Initialization tool"
Kiran Kamineni [Fri, 29 Mar 2019 21:17:20 +0000 (21:17 +0000)]
Merge "Update Initialization tool"

5 years agoUpgrade TPM2_Plugin to match with the tss stack 20/78520/9
Pramod Raghavendra Jayathirth [Thu, 14 Feb 2019 12:04:17 +0000 (04:04 -0800)]
Upgrade TPM2_Plugin to match with the tss stack

This upgrade is required due to the changes
in latest stable tss, abrmd and tpm-tools
Issue-ID: AAF-761

Change-Id: I564dba726ceb69a9d4caf8498940cadb810a478e
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoUpgrade import utility 24/79224/13
Pramod Raghavendra Jayathirth [Tue, 26 Feb 2019 13:43:57 +0000 (05:43 -0800)]
Upgrade import utility

This upgrade is required to make the import
utility compaitable with latest tss stack
Issue-ID: AAF-764

Change-Id: I8bf4d9cef3a669592f1828c65974cf946dda9804
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agofix check errors in the build file 92/82992/7
Pramod Raghavendra Jayathirth [Thu, 21 Mar 2019 16:14:45 +0000 (09:14 -0700)]
fix check errors in the build file

Issue-ID: AAF-793
Change-Id: I79f17ad508a29ff0239b7504cd8ab2ce5e11e8bb
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoUpdate Initialization tool 34/82734/1
Pramod Raghavendra Jayathirth [Tue, 19 Mar 2019 15:09:17 +0000 (08:09 -0700)]
Update Initialization tool

Change-Id: I88686761d324f9bd734d03ccb92f4a49783cf4a0
Issue-ID: AAF-762
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoAdd missing INFO.yaml blocks 32/79532/2 elalto 5.0.0-ONAP 5.0.1-ONAP 5.0.2-ONAP
Jessica Wagantall [Sat, 2 Mar 2019 01:53:53 +0000 (17:53 -0800)]
Add missing INFO.yaml blocks

Add missing information so that the new verify
job passes. Fix indentation.

Change-Id: Ifd7c7fd5f8be771ed92dcbacfb2c9f00898d7c46
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
5 years agoUpdate INFO.yaml 10/77510/1 3.0.1-ONAP
Instrumental [Tue, 29 Jan 2019 13:06:02 +0000 (07:06 -0600)]
Update INFO.yaml

Issue-ID: AAF-729
Change-Id: Idcfecb548ce51c5e092eb8c4aea100e97aed9056
Signed-off-by: Instrumental <jonathan.gathman@att.com>
5 years agoMerge "Adding multithreading support to the application"
Kiran Kamineni [Mon, 26 Nov 2018 18:14:40 +0000 (18:14 +0000)]
Merge "Adding multithreading support to the application"

5 years agoAdding multithreading support to the application 81/69781/16
Pramod Raghavendra Jayathirth [Wed, 3 Oct 2018 18:03:02 +0000 (11:03 -0700)]
Adding multithreading support to the application

change "thread_count" variable in the
CaSignMultThread.java file to control
the number of threads created

Change-Id: I2296c01d476a7cf18e7fa221d5dd74044cd87293
Issue-ID: AAF-471
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoMerge "Add Unit test to the SoftHSMv2 build"
Kiran Kamineni [Tue, 20 Nov 2018 23:00:20 +0000 (23:00 +0000)]
Merge "Add Unit test to the SoftHSMv2 build"

5 years agofix typos 88/72188/1 casablanca 3.0.0-ONAP
Stanislav Chlebec [Thu, 8 Nov 2018 10:48:53 +0000 (11:48 +0100)]
fix typos

Change-Id: Ib2c44f05aebe8799c5b5f970cc2ceb22a4db2887
Signed-off-by: Stanislav Chlebec <stanislav.chlebec@pantheon.tech>
Issue-ID: AAF-582

5 years agoAdd Unit test to the SoftHSMv2 build 10/70610/1
Pramod Raghavendra Jayathirth [Tue, 16 Oct 2018 15:20:41 +0000 (08:20 -0700)]
Add Unit test to the SoftHSMv2 build

Issue-ID: AAF-549
Change-Id: Idca602a0960467d933d339790ee4c16c3f747ad7
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agofix no such file or directory error 18/70318/1 3.0.0
Manjunath Ranganathaiah [Thu, 11 Oct 2018 14:31:16 +0000 (07:31 -0700)]
fix no such file or directory error

Create the required directory for abrmd data
before creating files

Issue-ID: AAF-527
Change-Id: I0fbc77d8eaa5b012b01dd01664ee810bce18a1d0
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoFix code formatting to match rest of Softhsm 22/70222/1
Kiran Kamineni [Thu, 11 Oct 2018 04:06:13 +0000 (21:06 -0700)]
Fix code formatting to match rest of Softhsm

Fix code formatting in Hwinfra module to match
rest of SoftHSM code.

Issue-ID: AAF-555
Change-Id: Ibbb39b72f90c7589b4999a1e2b10acf03d5c5818
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agofunc test framework and tests for sshsm 35/69535/9
Manjunath Ranganathaiah [Fri, 28 Sep 2018 23:15:07 +0000 (16:15 -0700)]
func test framework and tests for sshsm

This patch adds test framework and tests
for TPM based CA key protection import and signing.

Change-Id: I7bdd602f7275dd8613faeced11aad6c09a8aab52
Issue-ID: AAF-527
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Add abrmd readiness check script to base"
Girish Havaldar [Thu, 27 Sep 2018 08:22:00 +0000 (08:22 +0000)]
Merge "Add abrmd readiness check script to base"

5 years agoAdd abrmd readiness check script to base 83/68983/5
Kiran Kamineni [Tue, 25 Sep 2018 22:17:52 +0000 (15:17 -0700)]
Add abrmd readiness check script to base

Testca and any other container that depends on
abrmd needs a script to check if it is up and ready
to accept commands. This scripts addresses that via the
tpm2_listpcrs command.

Issue-ID: AAF-520
Change-Id: I432b6f16a78d8eb6f18118ca64f040a70b2cab25
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoUpdate location of passphrase in distcenter 75/69175/2
Kiran Kamineni [Wed, 26 Sep 2018 19:48:34 +0000 (12:48 -0700)]
Update location of passphrase in distcenter

Location for passphrase needed to be updated in
scenarios where tpm is not available
P2: Add more changes to get the passphrase to be passed
    correctly

Issue-ID: AAF-521
Change-Id: Ibf022e05489e77cdcec642a543abf5cec3c21e53
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoFix text file busy error when calling sub scripts 73/68973/2
Manjunath Ranganathaiah [Tue, 25 Sep 2018 21:33:29 +0000 (14:33 -0700)]
Fix text file busy error when calling sub scripts

Changing the file permission immediately followed
by running the script results in text file busy
error intermittently.

Change-Id: Ib1aa2273135cb42a8837af2b5a3aa630ca61dd9e
Issue-ID: AAF-519
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Remove global variable sessionData"
Girish Havaldar [Thu, 20 Sep 2018 03:39:18 +0000 (03:39 +0000)]
Merge "Remove global variable sessionData"

5 years agoFix bugs in startup script and move scripts to bin 81/67881/2
Kiran Kamineni [Wed, 19 Sep 2018 20:40:14 +0000 (13:40 -0700)]
Fix bugs in startup script and move scripts to bin

Testing in kubernetes revealed some issues that
needed to be fixed. This patch contains those changes.

Issue-ID: AAF-510
Change-Id: Ib7956a2d49f4f7f663f18522e71758dffe35bcb0
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoRemove global variable sessionData 97/67897/2
Kiran Kamineni [Wed, 19 Sep 2018 21:18:20 +0000 (14:18 -0700)]
Remove global variable sessionData

Remove global variable for storing session info.
Instead this is populated by the calling function
as required.

Issue-ID: AAF-334
Change-Id: I146b52bcee758fd053129fdf4f7a75691575e6e9
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoAdd support for PRK password in TPM plugin 41/67441/9
Kiran Kamineni [Tue, 18 Sep 2018 18:58:58 +0000 (11:58 -0700)]
Add support for PRK password in TPM plugin

PRK Password needs to be passed to TPM Plugin
for load key operations to work.
P7: Moved readPassword to calling function
P8: Check size of password string before memcpy
P9: Updated readme

Issue-ID: AAF-484
Change-Id: I213446012005f2919ee0912ccfe99c3a555ccb74
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Add import scripts to base image"
Kiran Kamineni [Thu, 13 Sep 2018 21:39:23 +0000 (21:39 +0000)]
Merge "Add import scripts to base image"

5 years agoAdd import scripts to base image 83/65883/6
Manjunath Ranganathaiah [Tue, 11 Sep 2018 16:11:06 +0000 (09:11 -0700)]
Add import scripts to base image

These scripts imports the CA key to either tpm or
softhsm. Updates the pkcs11 config file and adds
the required config for softhsm

Change-Id: If45cfb514756bf4ab03081d458ed728921fa1d51
Issue-ID: AAF-483
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Fix key pair loading in plugin"
Girish Havaldar [Wed, 12 Sep 2018 06:14:29 +0000 (06:14 +0000)]
Merge "Fix key pair loading in plugin"

5 years agoFix key pair loading in plugin 23/65623/3
Kiran Kamineni [Mon, 10 Sep 2018 23:31:49 +0000 (16:31 -0700)]
Fix key pair loading in plugin

Key pair reading in TPM plugin assumes a particular order for input buffers.
This patch checks the buffers and removes that assumption

Issue-ID: AAF-478
Change-Id: I4fff17c912a0890138d1f432e5bfab5c9946b1cb
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoRemove hardcoded paths and use CWD instead 35/65335/1
Kiran Kamineni [Fri, 7 Sep 2018 23:10:50 +0000 (16:10 -0700)]
Remove hardcoded paths and use CWD instead

Removed hardcoded paths and using CWD instead.
Makes deployment testing simpler in kubernetes.
Makes data localized and easier to debug.

Issue-ID: AAF-474
Change-Id: Ic671a8de2442bb9ca11bbc994a6e84bb12053617
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Script for SoftHSMv2 fallback mechanism"
Kiran Kamineni [Wed, 5 Sep 2018 20:28:54 +0000 (20:28 +0000)]
Merge "Script for SoftHSMv2 fallback mechanism"

5 years agoFix missing init.sh while building abrmd container 15/64815/1
Manjunath Ranganathaiah [Wed, 5 Sep 2018 17:20:26 +0000 (10:20 -0700)]
Fix missing init.sh while building abrmd container

The init.sh file is removed as part of ownership change
hence needs to be removed from dockerfile as well.

Change-Id: I62fc1e3e15f98caf68c78be6b3ab0dbb326c2eb4
Issue-ID: AAF-409
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Add option to provide password to import tool"
Girish Havaldar [Wed, 5 Sep 2018 03:36:08 +0000 (03:36 +0000)]
Merge "Add option to provide password to import tool"

5 years agoMerge "Use base image for building abrmd"
Girish Havaldar [Wed, 5 Sep 2018 03:34:19 +0000 (03:34 +0000)]
Merge "Use base image for building abrmd"

5 years agoMerge "Modify initialization to remove ownership step"
Girish Havaldar [Wed, 5 Sep 2018 03:33:36 +0000 (03:33 +0000)]
Merge "Modify initialization to remove ownership step"

5 years agoAdd option to provide password to import tool 09/63909/6
Kiran Kamineni [Thu, 30 Aug 2018 22:41:16 +0000 (15:41 -0700)]
Add option to provide password to import tool

Add -password command line argument to take the
primary key password to import keys.

Issue-ID: AAF-464
Change-Id: I68b87139405427d065883ffe714e1072d3e987df
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoScript for SoftHSMv2 fallback mechanism 57/63157/8
Pramod Raghavendra Jayathirth [Mon, 27 Aug 2018 16:05:45 +0000 (09:05 -0700)]
Script for SoftHSMv2 fallback mechanism

This will facilitate the SoftHSMv2 implementation
when TPM is unavailable

Change-Id: Ic77627702db514213cece200a259f723e6d66d34
Issue-ID: AAF-414
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoModify initialization to remove ownership step 45/63345/13
Kiran Kamineni [Tue, 28 Aug 2018 23:24:42 +0000 (16:24 -0700)]
Modify initialization to remove ownership step

TPM ownership and primary key creation is assumed to be a step that is
executed by the system administrator who will provide the credentials
to pods during startup [Srini]. Now, init only reads the public portion of the
primary key and puts it the host folder.
P9: Remove init.sh. Not needed as initialize will directly talk to device now.
Initialize is called during Step 1 and run_abrmd is called during Step 2

Issue-ID: AAF-409
Change-Id: Id0d1860f257c98045613e90b6b88e37858a9aceb
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoUse base image for building abrmd 25/63625/2
Kiran Kamineni [Wed, 29 Aug 2018 22:27:44 +0000 (15:27 -0700)]
Use base image for building abrmd

Use base image for building abrmd container
Removes needless compilation steps involved

Issue-ID: AAF-461
Change-Id: Ib9e1606b24223f235f5e60ff94add29e142f6bda
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoAdd build script for testcaservice container 59/63159/3
Manjunath Ranganathaiah [Tue, 28 Aug 2018 00:00:26 +0000 (17:00 -0700)]
Add build script for testcaservice container

Add script to build and push the image to
nexus repo. Invoke the script from top level
build script.

Issue-ID: AAF-447
Change-Id: I112efd4b484ee05e0ba0811efcb8ba7082a5d621
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoAdd build script for initabrmd container 13/62213/3
Manjunath Ranganathaiah [Thu, 23 Aug 2018 22:30:53 +0000 (15:30 -0700)]
Add build script for initabrmd container

Add script to build and push the image to
nexus repo. Invoke the script from top level
build script.

Change-Id: I644428d2da3bbc4688a3a45d34b8b7e9148314b0
Issue-ID: AAF-443
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Add build scripts and tabrmd"
Kiran Kamineni [Thu, 23 Aug 2018 18:33:23 +0000 (18:33 +0000)]
Merge "Add build scripts and tabrmd"

5 years agoMerge "Containerize TPM Initialization tool"
Kiran Kamineni [Thu, 23 Aug 2018 18:02:57 +0000 (18:02 +0000)]
Merge "Containerize TPM Initialization tool"

5 years agoAdd build scripts and tabrmd 93/61893/4
Manjunath Ranganathaiah [Wed, 22 Aug 2018 18:08:57 +0000 (11:08 -0700)]
Add build scripts and tabrmd

There is a dependency on tabrmd while building duplicate tool
and this is required for now. Cleanup and use base container
from nexus repo. Add build scripts for nightly build.

Change-Id: I4c3487d22988927084d7336671b81144374ccb5d
Issue-ID: AAF-418
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoContainerize TPM Initialization tool 21/58821/14
Pramod Raghavendra Jayathirth [Thu, 2 Aug 2018 17:41:31 +0000 (10:41 -0700)]
Containerize TPM Initialization tool

Modifying ABRMD container to support Init tool

Change-Id: I8b2f8171688b67567e3ad4a3e4942ae76737bdfc
Issue-ID: AAF-342
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoCopy out encrypted private key selectively 55/61155/1
Manjunath Ranganathaiah [Fri, 17 Aug 2018 23:19:18 +0000 (16:19 -0700)]
Copy out encrypted private key selectively

Only in the case where no tpm hosts are present, then encrypt
and copy out the private key

Change-Id: I34fbcf65e61c4e6803f594ffe1c527c9afd8f184
Issue-ID: AAF-376
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Base images build and dockerfiles"
Kiran Kamineni [Fri, 17 Aug 2018 23:02:48 +0000 (23:02 +0000)]
Merge "Base images build and dockerfiles"

5 years agoBase images build and dockerfiles 21/58521/9
Manjunath Ranganathaiah [Wed, 1 Aug 2018 23:52:39 +0000 (16:52 -0700)]
Base images build and dockerfiles

This patch provides a build script that can be triggered
by jenkins job to build base containers for AAF.

Change-Id: I029784e7adbd7076967b756c23678b562438e06f
Issue-ID: AAF-418
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoChange to container based naming convention 09/60809/1
Kiran Kamineni [Wed, 15 Aug 2018 23:41:42 +0000 (16:41 -0700)]
Change to container based naming convention

Changed naming and folder structure to allow for
easy integration with kubernetes. Changed createca
to distcenter name, after the container name.

Issue-ID: AAF-409
Change-Id: I6f9f290f7c1f02b42a11aea85c26b95b334082d1
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoMerge "Cleanup to remove the added sample files"
Kiran Kamineni [Wed, 8 Aug 2018 21:51:51 +0000 (21:51 +0000)]
Merge "Cleanup to remove the added sample files"

5 years agoMerge "Changes to encrypt and copy out private key"
Kiran Kamineni [Mon, 6 Aug 2018 17:38:45 +0000 (17:38 +0000)]
Merge "Changes to encrypt and copy out private key"

5 years agoCleanup to remove the added sample files 01/59001/1
Pramod Raghavendra Jayathirth [Fri, 3 Aug 2018 15:34:32 +0000 (08:34 -0700)]
Cleanup to remove the added sample files

The output files from Init, Duplicate and Import
is different and unique to each TPM and host

Change-Id: I718fedec07130cfb2ba7959aa2b964c2b59dbae5
Issue-ID: AAF-342
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoChanges to encrypt and copy out private key 19/57919/5
Manjunath Ranganathaiah [Fri, 27 Jul 2018 22:10:11 +0000 (15:10 -0700)]
Changes to encrypt and copy out private key

Using the given passphrase, encrypt the private key and copy out.
Use the public key from the mount for generating out files.

Change-Id: I5de42ad4c8a781201ed559b04b1457fe9e661e42
Issue-ID: AAF-376
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoCleanup unused jar file 85/57885/1
Manjunath Ranganathaiah [Fri, 27 Jul 2018 17:08:35 +0000 (10:08 -0700)]
Cleanup unused jar file

bctest jar file is not used and can be removed

Change-Id: I9121a9f3ce8312a73454e51725f2d6f57522560d
Issue-ID: AAF-342
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoRemove already installed packages 75/57775/1
Manjunath Ranganathaiah [Thu, 26 Jul 2018 23:43:33 +0000 (16:43 -0700)]
Remove already installed packages

These are installed and present in the base container.

Change-Id: Ibf591476e1fb9e036398043614e2a92ac939f6ba
Issue-ID: AAF-342
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
5 years agoMerge "Adding the CA service container"
Kiran Kamineni [Wed, 25 Jul 2018 20:34:52 +0000 (20:34 +0000)]
Merge "Adding the CA service container"

5 years agoBug - Private Handle mandatory 73/57373/1
Ritu Sood [Wed, 25 Jul 2018 02:41:17 +0000 (02:41 +0000)]
Bug - Private Handle mandatory

Private handle should not be mandatory
as it is not needed in no HW support case

Change-Id: I92158cb0b90f2b661ac091afc4131ad048887e17
Issue-ID: AAF-405
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
5 years agoAdding the CA service container 67/55667/27
Pramod Raghavendra Jayathirth [Mon, 2 Jul 2018 19:06:50 +0000 (12:06 -0700)]
Adding the CA service container

Adding the dockerfile and required scripts
to implement CA service container functionality

Issue-ID: AAF-342
Change-Id: I8ea086008d0d8e50bfad3886c741ba21642ac974
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoMerge "Key distribution center container"
Kiran Kamineni [Tue, 17 Jul 2018 03:28:32 +0000 (03:28 +0000)]
Merge "Key distribution center container"

5 years agoKey distribution center container 23/56423/5
Manjunath Ranganathaiah [Fri, 13 Jul 2018 23:26:16 +0000 (16:26 -0700)]
Key distribution center container

This container generates the ca key and
certificate and encrypts it using SRK public
key and stores the generated files on host
folder shared with this container. The public
key is built into the image for sample
known target host.

Change-Id: Ibcfdd10bca86a3e785a7ba6221e22fb78d8b706f
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Issue-ID: AAF-376

5 years agoMerge "Changing the directory of ABRMD container files"
Kiran Kamineni [Mon, 16 Jul 2018 20:46:46 +0000 (20:46 +0000)]
Merge "Changing the directory of ABRMD container files"

5 years agoChanging the directory of ABRMD container files 57/56257/3
Pramod Raghavendra Jayathirth [Wed, 11 Jul 2018 16:21:53 +0000 (09:21 -0700)]
Changing the directory of ABRMD container files

Including the ABRMD in a seperare directory for
better organization

Change-Id: I1097a2d7be5bc99b40b0bd59a4bdb939478d5129
Issue-ID: AAF-342
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoAdding the sample files for the tools 79/55979/3
Pramod Raghavendra Jayathirth [Fri, 6 Jul 2018 10:54:35 +0000 (03:54 -0700)]
Adding the sample files for the tools

the tools used are Init and duplicate

Change-Id: Ib3298f5cc1970d49834089ba969d4ddc1f41fe27
Issue-ID: AAF-342
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoAdding the sample directory for application 47/56247/5
Pramod Raghavendra Jayathirth [Wed, 11 Jul 2018 12:54:52 +0000 (05:54 -0700)]
Adding the sample directory for application

This can be considered as a sample for
shared voulume which holds application
content

Change-Id: Id46d33869402c22ae9902d1cdff4c1704e422362
Issue-ID: AAF-342
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoChange installation directory for tpm-util 03/54603/4
Pramod Raghavendra Jayathirth [Tue, 12 Jun 2018 16:13:01 +0000 (09:13 -0700)]
Change installation directory for tpm-util

changing the path from the user's home directory to
root's home directory for duplicate and import utlity

Change-Id: I1550492925fdd0e3096e7aab853c16896819d61c
Issue-ID: AAF-334
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
5 years agoMerge "Add INFO.yaml file" 2.0.0-ONAP beijing 2.0.0-ONAP
Kiran Kamineni [Fri, 25 May 2018 22:39:51 +0000 (22:39 +0000)]
Merge "Add INFO.yaml file"

5 years agoMerge "Allocating memory for modulus and exponent"
Kiran Kamineni [Fri, 25 May 2018 04:27:27 +0000 (04:27 +0000)]
Merge "Allocating memory for modulus and exponent"

5 years agoMerge "Added 3 more TPM2 Plugin APIs"
Kiran Kamineni [Thu, 24 May 2018 22:13:16 +0000 (22:13 +0000)]
Merge "Added 3 more TPM2 Plugin APIs"

5 years agoAdd INFO.yaml file 41/49041/1
Jessica Wagantall [Thu, 24 May 2018 22:12:30 +0000 (15:12 -0700)]
Add INFO.yaml file

Add INFO.yaml to list:
- Project description
- Properties
- PTL information
- Meeting information
- Committer information

Change-Id: I9e1a7b8db453fe1558a2f52a859d62c3767f115b
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
5 years agoAdded 3 more TPM2 Plugin APIs 81/44981/18
NingSun [Thu, 26 Apr 2018 21:20:38 +0000 (14:20 -0700)]
Added 3 more TPM2 Plugin APIs

Added tpm2_plugin_rsa_sign_update(...), tpm2_plugin_rsa_sign_final(...),
tpm2_plugin_rsa_sign_cleanup(...) APIs.

Issue-ID: AAF-94
Change-Id: I104ff7b979329c03e91206d19371d3904f163993
Signed-off-by: NingSun <ning.sun@intel.com>
5 years agoMerge "Added a new Attribute to store TPM key handle"
Kiran Kamineni [Wed, 23 May 2018 22:31:41 +0000 (22:31 +0000)]
Merge "Added a new Attribute to store TPM key handle"

5 years agoAdded a new Attribute to store TPM key handle 31/44731/10
Ritu Sood [Thu, 26 Apr 2018 01:50:05 +0000 (01:50 +0000)]
Added a new Attribute to store TPM key handle

Includes changes to detect existing instances of key  and
also some bug fixes. Also added new functionality for
RSA_SignUpdate, RSA_SignFinal and RSA_Cleanup

Issue-ID: AAF-260
Change-Id: Ib064e86b8f112784ed6d352ab1557ab9a13c5978
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
5 years agoMerge "Adding support for containerized tss and abrmd"
Girish Havaldar [Wed, 23 May 2018 04:04:17 +0000 (04:04 +0000)]
Merge "Adding support for containerized tss and abrmd"

5 years agoAllocating memory for modulus and exponent 19/48419/1
Ritu Sood [Tue, 22 May 2018 14:17:11 +0000 (14:17 +0000)]
Allocating memory for modulus and exponent

SoftHsm expects memory to be allocated by
the plugin

Issue-ID: AAF-260
Change-Id: I4ef93918a91971680f1f46517a46a29717a096b2
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
5 years agoUpdate tpm2_plugin_load_key() API 71/48071/2
NingSun [Thu, 17 May 2018 16:09:12 +0000 (09:09 -0700)]
Update tpm2_plugin_load_key() API

Add reading public key modulus and exponent information function in this API.

Issue-ID: AAF-94
Change-Id: I9d1b54336842dfc89140e281cec2ee43f0bb13d3
Signed-off-by: NingSun <ning.sun@intel.com>
5 years agoAdding support for containerized tss and abrmd 07/46707/3
Kiran Kamineni [Tue, 8 May 2018 23:24:28 +0000 (16:24 -0700)]
Adding support for containerized tss and abrmd

Adding a dockerfile to build a container that has
tss, abrmd and tpm2-tools installed on it.

Issue-ID: AAF-275
Change-Id: I8bda86d36290785950cf3c23d6527e1245652f42
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
5 years agoRemove keyconv code from SoftHSM library 05/46705/2
Ritu Sood [Wed, 9 May 2018 07:04:42 +0000 (07:04 +0000)]
Remove keyconv code from SoftHSM library

Code not used by SoftHsm and has license issues

Issue-ID: AAF-279
Change-Id: Ie07eef82f9e7bcc445772dba474c1f0e7753542c
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
6 years agoModify TPM2 Plugin codes 87/42087/9
NingSun [Tue, 10 Apr 2018 22:49:01 +0000 (15:49 -0700)]
Modify TPM2 Plugin codes

Modify codes to use tpm2-tss version 1.2.0, tpm2-abrmd version 1.1.1
tpm2-tools version 2.1.0.

Issue-ID: AAF-94
Change-Id: I2feccbb8dbe718756a5fd363b8dc703562ccd5eb
Signed-off-by: NingSun <ning.sun@intel.com>
6 years agoUtility to Import external RSA pem key into TPM 47/40447/2
Arun kumar Sekar [Fri, 30 Mar 2018 18:20:30 +0000 (11:20 -0700)]
Utility to Import external RSA pem key into TPM

Duplicate tool - Takes RSA private key in
pem format as input and generates
TPM structured buffers as expected by tpm Import

Import tool - Takes input buffers from
Duplicate tool and results in pub/priv blobs
which can be used to load the key in tpm
storage heirarchy's as child to primary key

Change-Id: I0af6676895ce0cc22c70e5546908e905b78bb71e
Issue-ID: AAF-207
Signed-off-by: Arun kumar Sekar <arunkumarsit@gmail.com>
6 years agoFolder name changed from tpm-tools to tpm-util 45/40445/1
arunkumarsit [Fri, 30 Mar 2018 17:43:06 +0000 (10:43 -0700)]
Folder name changed from tpm-tools to tpm-util

Change-Id: Ica9eca7f32fac0757a9c1718c1e5ec7c922ca8cd
Issue-ID: AAF-207
Signed-off-by: Arun kumar sekar <arunkumarsit@gmail.com>
6 years agoMerge "tpm tools for the below functionalities"
Kiran Kamineni [Fri, 30 Mar 2018 20:27:32 +0000 (20:27 +0000)]
Merge "tpm tools for the below functionalities"

6 years agotpm tools for the below functionalities 03/40303/2
Pramod [Thu, 29 Mar 2018 17:22:33 +0000 (10:22 -0700)]
tpm tools for the below functionalities

1.INIT(Script) - Establish connection with the
Actual TPM Hardware and loads the primary key
into the TPM hardware

2. Sign and verify(Script) - Loads the key and
does the sign and verify operation

Issue-ID: AAF-207
Change-Id: I015eb5fbc6f0e6f09ca454ed1bb55c5f5aadebae
Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
6 years agoClean up TPM2 PLugin codes 23/40323/4
NingSun [Fri, 30 Mar 2018 04:06:26 +0000 (21:06 -0700)]
Clean up TPM2 PLugin codes

Remove unused and redundant codes.

Issue-ID: AAF-94
Change-Id: Icfdbf29e2d7caa339977e7d074f16e123cbff84f
Signed-off-by: NingSun <ning.sun@intel.com>
6 years agoAdds the HardwareInfra layer in SoftHSM 97/39897/7
Pramod Raghavendra Jayathirth [Tue, 27 Mar 2018 16:24:56 +0000 (09:24 -0700)]
Adds the HardwareInfra layer in SoftHSM

This enables the support of multiple HSMs

Issue-ID: AAF-200
Change-Id: I825a72a0bf46827ff3be0c0311085cf970b970a6
Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
6 years agoAdd more codes in tpm2-plugin 09/39209/4
NingSun [Tue, 27 Mar 2018 17:42:51 +0000 (10:42 -0700)]
Add more codes in tpm2-plugin

Implement tpm2_plugin_load_key() and tpm2_plugin_rsa_sign() APIs

Issue-ID: AAF-94
Change-Id: I5f4329fdf973e52264d9e0e8aabc864c5fbdeebf
Signed-off-by: NingSun <ning.sun@intel.com>
6 years agoRemove win32 support in SoftHSMv2 49/35849/4
NingSun [Wed, 14 Mar 2018 23:35:31 +0000 (16:35 -0700)]
Remove win32 support in SoftHSMv2

Due to license issue, we have to remove win32 support in SoftHSMv2.

Issue-ID: AAF-151
Change-Id: I31dda45ed84065819e26be8205747dd096a37432
Signed-off-by: NingSun <ning.sun@intel.com>
6 years agoSetup TPM2-Plugin build environment 15/33515/8
NingSun [Thu, 1 Mar 2018 02:24:31 +0000 (18:24 -0800)]
Setup TPM2-Plugin build environment

Add initial codes to build TPM2-plugin shared lib

Issue-ID: AAF-94
Change-Id: I96dee3699aa250b69350d6f01401f3831cf515f7
Signed-off-by: NingSun <ning.sun@intel.com>
6 years agoInitial sshsm project structure 97/30897/3
NingSun [Thu, 8 Feb 2018 16:34:03 +0000 (08:34 -0800)]
Initial sshsm project structure

Issue-ID: AAF-94
Change-Id: I5e82fff418e7567b161acf9b98013a9b85ffc5b4
Signed-off-by: NingSun <ning.sun@intel.com>
6 years agoInitial empty repository
Jessica Wagantall [Thu, 25 Jan 2018 19:35:01 +0000 (19:35 +0000)]
Initial empty repository