From f4f588683dce36c4470171cb6af74763778498ff Mon Sep 17 00:00:00 2001 From: Yuki Ito Date: Fri, 25 Mar 2016 17:55:17 +0900 Subject: crypto: Enable AES-GCM tag length to change This commit enables AES-GCM encryption/decryption to change its tag length between 1 to 16 bytes. --- lib/crypto/doc/src/crypto.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/crypto/doc/src') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index d3e827b3e6..9cb9587964 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -203,6 +203,7 @@ block_encrypt(Type, Key, Ivec, PlainText) -> CipherText block_encrypt(AeadType, Key, Ivec, {AAD, PlainText}) -> {CipherText, CipherTag} + block_encrypt(aes_gcm, Key, Ivec, {AAD, PlainText, TagLength}) -> {CipherText, CipherTag} Encrypt PlainText according to Type block cipher Type = block_cipher() @@ -210,6 +211,7 @@ Key = block_key() PlainText = iodata() AAD = IVec = CipherText = CipherTag = binary() + TagLength = 1..16

Encrypt PlainText according to Type block cipher. -- cgit v1.2.3