You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
Hi, I'm trying to use the currently undocumented ECB functions. I'm puzzled as to why the encrypt function returns 32 octets when it looks like a block size of 16 is specified as the default. Here's my test:
// ECB test
var asmcrypto = require('./asmcrypto.all');
var utils = require('./utils.js');
// AEC-ECB(000000000012345677E4D611358EAF17,8b84eedec100067d670971dd2aa700cf)
var hex_data = "000000000012345677E4D611358EAF17";
var hex_key = "8b84eedec100067d670971dd2aa700cf";
var hex_padding = "";
console.log("encrypt("+hex_data+","+hex_key+")");
var ecb_encrypted = asmcrypto.AES_ECB.encrypt( utils.hexToU8A(hex_data), utils.hexToU8A(hex_key), utils.hexToU8A(hex_padding));
console.log(asmcrypto.bytes_to_hex(ecb_encrypted));
It looks like the fix has been regressed. I just ran my test code against the same asmcrypto code I was using last year and compared with the latest from head, cloned a few minutes ago.
Hi, I'm trying to use the currently undocumented ECB functions. I'm puzzled as to why the encrypt function returns 32 octets when it looks like a block size of 16 is specified as the default. Here's my test:
and this produces the following output:
The first 16 octets are my expected result:
What are the 16 which follow?
Thanks
The text was updated successfully, but these errors were encountered: