BSOne.SFC/Tocsg.Lib/VCL/EncLib/AES
mgkim 30e0d14a50 feat: 보안기능 확인서 기능 추가
파일 반출 관리 MTP, CDROM, USB 기능 추가
정책 반영 시 ectApp 부분 같이 파일로 저장하도록 수정
2026-02-13 14:36:16 +09:00
..
Source.zip Tocsg.Lib 2025-12-30 14:39:40 +09:00
!bdll.bat Tocsg.Lib 2025-12-30 14:39:40 +09:00
#ca.bat Tocsg.Lib 2025-12-30 14:39:40 +09:00
#ca_dll.bat Tocsg.Lib 2025-12-30 14:39:40 +09:00
#times.aes Tocsg.Lib 2025-12-30 14:39:40 +09:00
$d25.zip Tocsg.Lib 2025-12-30 14:39:40 +09:00
$log_aes.zip Tocsg.Lib 2025-12-30 14:39:40 +09:00
_comparm Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_base.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_cbc.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_ccm.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_cfb.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_cfb8.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_cmac.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_conf.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_cprf.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_ctr.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_decr.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_dll.dpr Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_dll.res Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_eax.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_ecb.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_encr.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_gcm.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_intf.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_intv.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_ofb.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_omac.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_seek.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_type.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
aes_xts.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
btypes.pas feat: 보안기능 확인서 기능 추가 2026-02-13 14:36:16 +09:00
comp_speed Tocsg.Lib 2025-12-30 14:39:40 +09:00
copying_we.txt Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_ca16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_cdat.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_cp16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_cp32.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_fa16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_fdat.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_fp16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
dec_fp32.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_ca16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_cdat.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_cp16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_cp32.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_fa16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_fdat.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_fp16.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
enc_fp32.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
legal.txt Tocsg.Lib 2025-12-30 14:39:40 +09:00
manifest.aes Tocsg.Lib 2025-12-30 14:39:40 +09:00
mem_util.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
options.zip Tocsg.Lib 2025-12-30 14:39:40 +09:00
ppp.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
readme.aes Tocsg.Lib 2025-12-30 14:39:40 +09:00
samples.zip Tocsg.Lib 2025-12-30 14:39:40 +09:00
std.inc Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aes_as.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aes_cs.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aes_ws.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aes_xl.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aescbc.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aesccm.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aescf8.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aescfb.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aescrp.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aesctr.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aesecb.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aesgcm.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aesofb.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_aestab.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_cbccts.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_cmac.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_cprf.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_eax2.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_ecbcts.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_fbmodi.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_gsp128.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_gspeed.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_mcst.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_mctful.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_mkctab.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_omac.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_ppp.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00
t_xts.pas Tocsg.Lib 2025-12-30 14:39:40 +09:00

readme.aes

This archive contains AES (Advanced Encryption Standard) related Pascal /
Delphi sources: basic AES routines and recommended block cipher modes of
operation (with test programs that verify compilation and results).

The block level routines supply separate units for encryption and decryption.
The source code for basic encryption/decryption is split into several include
files. At the lowest level there are type definitions and common routines. Key
sizes of 128, 192, and 256 bits are supported.

The following recommended block cipher modes of operation are implemented:
CBC, CFB128, CFB8, CTR, ECB, OFB, OMAC, CMAC, CCM, EAX, GCM, and XTS. All
chaining modes allow plain and cipher text lengths that need not be multiples
of the block length (for ECB and CBC cipher text stealing is used for the
short block; only one short block is allowed and there must be at least one
full block). CTR mode can use 4 built-in incrementing functions or a user
supplied one, and provides seek functions for random access reads.

All routines have been included in the AES_DLL.DLL, there are two interface
units for this DLL (one for Virtual Pascal, the second for the other Win32
compilers).

Since the July 2006 release there are conditional defines to support
compressed tables: one 2K encryption table (calculated with t_mkctab) replaces
the four 1K tables (same for decryption, here the inverse SBox is no longer
needed). Besides using less static memory, compressed tables are considered as
a countermeasure against cache timing attacks.

W.Ehrhardt, Nov. 2017
http://wolfgang-ehrhardt.de

-------------------------------------------------------------------------------

Last changes:

Nov. 2017
- FPC/ARM and Delphi Tokyo adjustments

Sep. 2015
- Constant time verification/compare for the all-in-one packet 
  functions (aes_eax, aes_gcm, aes_ccm)

Jan. 2013
- Adjustments (test programs) for D17 (XE3), {$J+} if needed

Dec. 2012
- Small 64-bit adjustments (separate BIT64 include statements in
  aes_decr and aes_encr; improved aes_gcm)

July 2012
- 64-bit adjustment for GCM

Oct. 2010
- Galois/Counter Mode (GCM)
- Fix PPP unit for TP5

Aug. 2010
- Message length ILen has now type longint
- New PPP unit (Perfect Paper Passwords)

June 2010
- AES_CTR_Seek functions

July 2009
- Delphi 2009 (D12) adjustments

May  2009
- Counter with CBC-MAC (CCM) mode

Nov. 2008
- Uses the BTypes unit for better portability

Aug. 2008
- All-in-one EAX functions for encrypt / authenticate and decrypt / verify:
  decryption is performed only if the verification was successful.
- Range check safe IncProcs for FPC -dDebug

Jan. 2008
New unit aes_cfb8 implementing the 8 bit CFB mode

Oct. 2007
- New unit aes_xts implementing the XTS mode from the IEEE P1619 Draft Standard
 for Cryptographic Protection of Data on Block-Oriented Storage Devices.

June 2007
- AES-CMAC-PRF-128 from RFC 4615
- New EAX context name

Nov. 2006
- Contributed AES256 file crypt/authenticate unit

July 2006
- CMAC mode, compressed tables as a countermeasure against cache timing attacks

Jul. 2004
- EAX mode, AES DLL, new demo programs

Jun. 2004
- OMAC mode on AES page

Mar. 2004
- Significant speedup of AES key generation

Jan. 2004
- New faster AES routines

Dec. 2003
- First version of AES archive released