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

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?

Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: AES Encryption & Security Builder API



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;




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


update * x


destroy the key

destroy the params

Rob is no longer associated with BlackBerry.