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 >The <c >AAD</c > argument represents the Additional Authentication Data. It's optional. If it's
839
- not needed, it can be set to an empty binary (<c ><<>> </c >).
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 >
840
844
<p >See <seeguide marker =" crypto:new_api#example-of-crypto_one_time_aead-6" >examples in the User's Guide.</seeguide >
841
845
</p >
842
846
</desc >
@@ -1717,7 +1721,7 @@ FloatValue = rand:uniform(). % again
1717
1721
</func >
1718
1722
1719
1723
</funcs >
1720
-
1724
+
1721
1725
1722
1726
<funcs >
1723
1727
<fsdescription >
@@ -1730,7 +1734,7 @@ FloatValue = rand:uniform(). % again
1730
1734
<desc >
1731
1735
<p >Fetches the corresponding public key from a private key stored in an Engine.
1732
1736
The key must be of the type indicated by the Type parameter.
1733
- </p >
1737
+ </p >
1734
1738
</desc >
1735
1739
</func >
1736
1740
@@ -1954,20 +1958,20 @@ FloatValue = rand:uniform(). % again
1954
1958
<desc >
1955
1959
<p >
1956
1960
Loads an engine given by <c >EngineId</c > and the path to the dynamic library
1957
- 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.
1958
1962
1959
1963
</p >
1960
1964
<p >
1961
1965
This function differs from the normal engine_load in the sense that it
1962
1966
also add the engine id to OpenSSL's internal engine list. The difference between
1963
- 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
1964
1968
engine and the following calls fetch it from the OpenSSL's engine list.
1965
1969
All references that is returned are equal.
1966
1970
</p >
1967
1971
<p >
1968
1972
Use <c >engine_unload/1</c > function to remove the references. But remember that
1969
1973
<c >engine_unload/1</c > just removes the references to the engine and not the
1970
- 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 >
1971
1975
function when needed (just called once, from any of the references you got).
1972
1976
</p >
1973
1977
<p >
0 commit comments