# Encryption and Decryption (CBC mode)
MK = c(0x88, 0xE3, 0x4F, 0x8F, 0x08, 0x17, 0x79, 0xF1,
0xE9, 0xF3, 0x94, 0x37, 0x0A, 0xD4, 0x05, 0x89)
IV = c(0x26, 0x8D, 0x66, 0xA7, 0x35, 0xA8, 0x1A, 0x81)
P = c(0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07)
C = hight_enc(P,MK,mode = 'CBC', IV, output='int')
hight_dec (C,MK , mode = 'CBC', IV, output = 'int')
# Check decrypted text is same with the Plaintext
hight_dec (C, MK , mode = 'CBC', IV, output = 'int')==P
Run the code above in your browser using DataLab