blocktrail-sdk
Version:
BlockTrail's Developer Friendly API binding for NodeJS
28 lines (21 loc) • 678 B
JavaScript
/**
* Output Feedback (OFB)
*/
function AES_OFB ( options ) {
this.iv = null;
AES.call( this, options );
this.mode = 'OFB';
}
function AES_OFB_Crypt ( options ) {
AES_OFB.call( this, options );
}
var AES_OFB_prototype = AES_OFB.prototype;
AES_OFB_prototype.BLOCK_SIZE = 16;
AES_OFB_prototype.reset = AES_reset;
AES_OFB_prototype.encrypt = AES_Encrypt_finish;
AES_OFB_prototype.decrypt = AES_Encrypt_finish;
var AES_OFB_Crypt_prototype = AES_OFB_Crypt.prototype;
AES_OFB_Crypt_prototype.BLOCK_SIZE = 16;
AES_OFB_Crypt_prototype.reset = AES_reset;
AES_OFB_Crypt_prototype.process = AES_Encrypt_process;
AES_OFB_Crypt_prototype.finish = AES_Encrypt_finish;