Hi,

Since cipher object is created from JKS file and doCipher function works
properly for wso2carbon.jks file in carbon-secvault repo. I have added the
same wso2carbon.jks file from carbon-secvault repo to the kernel. After
adding jks file secure vault OSGi service return correct decrypted
password. So we can go with that. right?

Thanks,
Lakshman

On Fri, Apr 21, 2017 at 6:10 PM, Lakshman Udayakantha <[email protected]>
wrote:

> Hi JayangaD,
>
> For issue [1], While debugging the code, I found that
> JKSBasedCipherProvider.doCipher(Cipher cipher, byte[] original) method is
> received the same byte array when I decrypt same encrypted string for
> both osgi service and cipher tool command line argument. But this returns
> an empty array for osgi service and correct decrypted value for command
> line arguments case. So the problem may be with the cipher object used. In
> case how I defer cipher object used for both scenarios? Or any idea to
> narrow down the issue?
>
> [1] https://github.com/wso2/carbon-secvault/issues/32
>
> Thanks,
> Lakshman.
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0717429601*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to