openssl, crypto등 암호 알고리즘 라이브러리를 이용하여 AES 암복호화를 구현하시오.

사용 프로그램 언어 제한 없음


1. 암호화 

 - 입력값 : Key, IV, Plaintext

- 결과값 : Ciphertext


2. 복호화

 - 입력값 : Key, IV, Ciphertext

- 결과값 : Plaintext



- 아래 테스트 벡터를 이용하여 해당 결과값이 올바르게 나와야 통과

CBC-AES128.Encrypt

Key : 2b7e151628aed2a6abf7158809cf4f3c

IV : 000102030405060708090a0b0c0d0e0f

Plaintext : 6bc1bee22e409f96e93d7e117393172a

Ciphertext : 7649abac8119b246cee98e9b12e9197d


CBC-AES128.Decrypt

Key : 2b7e151628aed2a6abf7158809cf4f3c

IV : 000102030405060708090a0b0c0d0e0f

Ciphertext : 7649abac8119b246cee98e9b12e9197d

Plaintext : 6bc1bee22e409f96e93d7e117393172a


시발