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

Native Development

Reply
Contributor
Surtr
Posts: 10
Registered: ‎01-30-2013
My Device: Alpha A/B
My Carrier: N/A

AES Encryption & Security Builder API

I'm looking at implementing a 64Bit AES symmetric encryption using the Security Builder API, though I'm having difficulty finding a working sample or piecing it together from the API reference.

 

Any ideas?

Please use plain text.
BlackBerry Development Advisor (Retired)
robbieDubya
Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: AES Encryption & Security Builder API

Hi,

 

I'm not sure what you mean by 64bit, AES is normally measured by key size, and the supported key sizes are 128,192 and 256 bits.

 

There's a good tutorial (showing SHA) here;

 

http://supportforums.blackberry.com/t5/tkb/articleprintpage/tkb-id/native_sdk@tkb/article-id/17

 

I think this code is really useful as it shows how to create the contexts and initialise the Security Builder code.

 

When doing AES, you generally,

 

create params

set key

begin

update * x

end

destroy the key

destroy the params

--
Rob is no longer associated with BlackBerry.
Please use plain text.