aws-samples / aws-cloudhsm-jce-examples

Sample applications demonstrating how to use the CloudHSM JCE
MIT No Attribution
37 stars 57 forks source link

AESWrapping sample now works for AESWrap/ECB/* mechanisms #34

Closed mayankambaliya closed 4 years ago

mayankambaliya commented 4 years ago

Description of changes:

Original key before wrapping: 8JxVG/0d4gduS34Y7IY2AVUX91Cpt0J/JWMF+AvGCHE=

Verified key when using the HSM to wrap and unwrap with AESWrap/ECB/NoPadding: 8JxVG/0d4gduS34Y7IY2AVUX91Cpt0J/JWMF+AvGCHE=

Verified key when using the HSM to wrap and unwrap with AESWrap/ECB/PKCS5Padding: 8JxVG/0d4gduS34Y7IY2AVUX91Cpt0J/JWMF+AvGCHE=

Verified key when using the HSM to wrap and unwrap with AESWrap/ECB/ZeroPadding: 8JxVG/0d4gduS34Y7IY2AVUX91Cpt0J/JWMF+AvGCHE=



By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.