Hi James,
Having a quick look in the C side of things, it looks like the names come
directly from OpenSSL, which has a function EVP_get_cipherbyname; I couldn't
quite find where "aes256" was defined, however, I did just try doing:
crypto.createCipher("aes-256-cbc", key)
And it appeared to work. I can see a bunch of names defined in objects.h and
such in openssl, but don't know how those really work.
– Micheil
On 08/10/2012, at 2:48 PM, James Coglan <[email protected]> wrote:
> Hi all,
>
> I'm trying to implement a crypto system, and want to make sure I'm doing
> something portable, i.e. the ciphertexts I generate can be understood by any
> language with openssl functionality. I have a Ruby program that uses
> AES-256-CBC to encrypt some data, and I want to make sure I can generate the
> same ciphertext using Node.
>
> What mode of operation does crypto.createCipher('aes256') use? I assume it's
> not a bare AES function since it can encrypt arbitrary amounts of data, so it
> must be using a construction like CBC or CTR. Which one does it use, and can
> it be changed by the user?
>
> --
> James Coglan
> http://jcoglan.com
> +44 (0) 7771512510
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en