Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
meen
Posts: 4
Registered: ‎09-10-2008
My Device: Not Specified

Problems with the bytes putting in a RSAPrivateKey Class

Hi,

 

I'm having a trouble putting parameters in the RSAPrivateKey Class, for example, i´m trying to put the modulus of an private key  in the RSAPrivateKey Class ( a byte array) that i made with another crypto library but when this byte array starts with a value "0x00"  the RSAPrivateKey take all the values except the "0x00". This is a huge problem when i try to load a private key from an PKCS12 (that i already loaded to the blackberry from the desktop manager) because it generates an error because  in this issue.

 

Can you tell me how can i put all the byte array into the RSAPrivateKey Class without the problem of this class won't take the value "0x00" in the begining of the array?. 

 

Thanks

Please use plain text.