1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
| Var Cipher : TDCP_rijndael; AES_Key : Array [0..15] of Byte = ($32,$43,$f6,$a8,$88,$5a,$30,$8d, $31,$31,$98,$a2,$e0,$37,$07,$34); AES_IV : Array [0..15] of Byte = ($00,$01,$00,$01,$00,$01,$00,$01, $00,$01,$00,$01,$00,$01,$00,$01); Cipher_Block : Array [0..15] of Byte = ($9b,$dd,$38,$72,$36,$8f,$6d,$67, $39,$44,$dd,$9e,$14,$29,$3f,$35); Cipher_OutData: Array [0..15] of Byte;
begin Cipher := TDCP_rijndael.Create(nil); Cipher.Init (AES_Key, SizeOf(AES_Key)*8, @AES_IV); Cipher.Reset; Cipher.DecryptCBC(Cipher_Block, Cipher_OutData, Length(Cipher_Block) ); Cipher.Burn; Cipher.Free; end; |