how do i make SecKeyRef object from NSData of publicKey value

2009-09-27 Thread bosco fdo
Hi I need to do RSA encryption for that i need to have SecKeyRef object for the public Key i have. Do i still need to add to the Keychain and get from the Keychain as a SecKeyRef ? Is there any way i can convert my publicKey value from NSData bytes to SecKeyref ? Please help with sample code Th

Re: int to bytes(value in NSString)

2009-08-19 Thread bosco fdo
se it together with other binary format data [the correct output format will be some 4 square like chars ] is it the format which i need is byte char? or binary format? [ not "0 and 1" format ] if i use %c i am getting empty NSString so is the logic to convert from int to bin is wrong?

Re: int to bytes(value in NSString)

2009-08-18 Thread bosco fdo
help bos On Tue, Aug 18, 2009 at 2:56 PM, Andrew Farmer wrote: > > On 17 Aug 2009, at 23:21, bosco fdo wrote: >> >> Hi graham >> Thanks for the reply.  I have tried %i.1 but i am getting 0.10.10.10.1 , >> but i need it in binary byte value > > Wait, you'

Re: int to bytes(value in NSString)

2009-08-17 Thread bosco fdo
Hi graham Thanks for the reply. I have tried %i.1 but i am getting 0.10.10.10.1 , but i need it in binary byte value bos On Tue, Aug 18, 2009 at 10:06 AM, Graham Cox wrote: > > On 17/08/2009, at 5:07 PM, bosco fdo wrote: > > I need NSString in binary format how do i print

int to bytes(value in NSString)

2009-08-17 Thread bosco fdo
Hi I dont understand of the below case of converting int to byte , the below java code can able to print the byte value as below System.out.println("binary output ::: "+Byte.toString(bo[0])); System.out.println("binary output ::: "+Byte.valueOf(bo[1])); System.out.println("binary output ::: "+By