Galois/Counter Mode (GCM) is a block cipher mode of operation that uses universal hashing over a binary Galois field to provide authenticated encryption. It can be implemented in hardware to achieve high speeds with low cost and low latency. Softwar
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key c
高级加密标准(AES)服务
该库允许您使用以下模式创建AES服务
伽罗瓦/计数器模式(GCM)
已知局限性
解密输入流时,GCM中的缓冲区加载大小固定为16 KB。 在大多数系统上这是有效的,但可能需要可变。 缓冲区大小将在将来的版本中变得可配置。
用法示例–带有GCM的AES
使用密钥实例化AES服务
final var aes = AESFactory.aesGCM(new Secret());
通过加密您的纯文本
final var aad = new AAD("some aad dat