aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/doc/src
diff options
context:
space:
mode:
authorYuki Ito <[email protected]>2016-03-25 17:55:17 +0900
committerYuki Ito <[email protected]>2016-03-26 12:01:36 +0900
commitf4f588683dce36c4470171cb6af74763778498ff (patch)
tree461c7d681d8b7d5d4045552c1dbfce989cd95b83 /lib/crypto/doc/src
parentab418313123e98d5de15e2e71ac169afdad8d3f8 (diff)
downloadotp-f4f588683dce36c4470171cb6af74763778498ff.tar.gz
otp-f4f588683dce36c4470171cb6af74763778498ff.tar.bz2
otp-f4f588683dce36c4470171cb6af74763778498ff.zip
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.
Diffstat (limited to 'lib/crypto/doc/src')
-rw-r--r--lib/crypto/doc/src/crypto.xml2
1 files changed, 2 insertions, 0 deletions
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 @@
<func>
<name>block_encrypt(Type, Key, Ivec, PlainText) -> CipherText</name>
<name>block_encrypt(AeadType, Key, Ivec, {AAD, PlainText}) -> {CipherText, CipherTag}</name>
+ <name>block_encrypt(aes_gcm, Key, Ivec, {AAD, PlainText, TagLength}) -> {CipherText, CipherTag}</name>
<fsummary>Encrypt <c>PlainText</c> according to <c>Type</c> block cipher</fsummary>
<type>
<v>Type = block_cipher() </v>
@@ -210,6 +211,7 @@
<v>Key = block_key() </v>
<v>PlainText = iodata() </v>
<v>AAD = IVec = CipherText = CipherTag = binary()</v>
+ <v>TagLength = 1..16</v>
</type>
<desc>
<p>Encrypt <c>PlainText</c> according to <c>Type</c> block cipher.