42
42
<item >
43
43
<url href =" https://www.nist.gov/publications/sha-3-standard-permutation-based-hash-and-extendable-output-functions?pub_id=919061" >
44
44
SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions [FIPS PUB 202]
45
- </url >
45
+ </url >
46
46
</item >
47
47
<tag >BLAKE2</tag >
48
48
<item >
404
404
<desc >
405
405
<code >srp_public() = key_integer() </code >
406
406
<p >Where is <c >A</c > or <c >B</c > from <url href =" http://srp.stanford.edu/design.html" >SRP design</url ></p >
407
-
407
+
408
408
<code >srp_private() = key_integer() </code >
409
409
<p >Where is <c >a</c > or <c >b</c > from <url href =" http://srp.stanford.edu/design.html" >SRP design</url ></p >
410
410
</desc >
630
630
</section >
631
631
632
632
<!-- ================ FUNCTIONS ================-->
633
-
633
+
634
634
635
635
<funcs >
636
636
<func >
709
709
<p >Uses the <seeerl marker =" #error_3tup" >3-tuple style</seeerl > for error handling.</p >
710
710
<p >
711
711
It does an actual crypto operation on a part of the full text. If the part is less
712
- than a number of full blocks, only the full blocks (possibly none) are encrypted
712
+ than a number of full blocks, only the full blocks (possibly none) are encrypted
713
713
or decrypted and the remaining bytes are saved to the next <c >crypto_update</c > operation.
714
714
The <c >State</c > should be created with
715
715
<seemfa marker =" crypto#crypto_init/3" >crypto_init/3</seemfa >
835
835
<p >For decryption, set the <c >EncryptFlag</c > to <c >false</c > and put the tag to be checked
836
836
in the argument <c >TagOrTagLength</c >.
837
837
</p >
838
+ <p >Additional Authentication Data (AAD) is plaintext data that will not be encrypted,
839
+ but will be covered by authenticity protection. It should be provided through the <c >AAD</c >
840
+ argument, but can be an empty binary as well (<c ><<>> </c >) if not needed. In that
841
+ case, a plain AE (Authenticated Encryption) is performed instead of AEAD (Authenticated
842
+ Encryption with Associated Data). This function only supports ciphers that can be used both with
843
+ and without AAD.</p >
838
844
<p >See <seeguide marker =" crypto:new_api#example-of-crypto_one_time_aead-6" >examples in the User's Guide.</seeguide >
839
845
</p >
840
846
</desc >
@@ -1715,7 +1721,7 @@ FloatValue = rand:uniform(). % again
1715
1721
</func >
1716
1722
1717
1723
</funcs >
1718
-
1724
+
1719
1725
1720
1726
<funcs >
1721
1727
<fsdescription >
@@ -1728,7 +1734,7 @@ FloatValue = rand:uniform(). % again
1728
1734
<desc >
1729
1735
<p >Fetches the corresponding public key from a private key stored in an Engine.
1730
1736
The key must be of the type indicated by the Type parameter.
1731
- </p >
1737
+ </p >
1732
1738
</desc >
1733
1739
</func >
1734
1740
@@ -1952,20 +1958,20 @@ FloatValue = rand:uniform(). % again
1952
1958
<desc >
1953
1959
<p >
1954
1960
Loads an engine given by <c >EngineId</c > and the path to the dynamic library
1955
- implementing the engine. An error tuple is returned if the engine can't be loaded.
1961
+ implementing the engine. An error tuple is returned if the engine can't be loaded.
1956
1962
1957
1963
</p >
1958
1964
<p >
1959
1965
This function differs from the normal engine_load in the sense that it
1960
1966
also add the engine id to OpenSSL's internal engine list. The difference between
1961
- the first call and the following is that the first loads the engine with the dynamical
1967
+ the first call and the following is that the first loads the engine with the dynamical
1962
1968
engine and the following calls fetch it from the OpenSSL's engine list.
1963
1969
All references that is returned are equal.
1964
1970
</p >
1965
1971
<p >
1966
1972
Use <c >engine_unload/1</c > function to remove the references. But remember that
1967
1973
<c >engine_unload/1</c > just removes the references to the engine and not the
1968
- tag in OpenSSL's engine list. That has to be done with the <c >engine_remove/1</c >
1974
+ tag in OpenSSL's engine list. That has to be done with the <c >engine_remove/1</c >
1969
1975
function when needed (just called once, from any of the references you got).
1970
1976
</p >
1971
1977
<p >
0 commit comments