|
536 | 536 |
|
537 | 537 | <para> |
538 | 538 | For other use cases of AEAD ciphers, the ASCII art applies as |
539 | | - well, but the caller may not use the GIVCIPHER interface. In |
540 | | - this case, the caller must generate the IV. |
| 539 | + well, but the caller may not use the AEAD cipher with a separate |
| 540 | + IV generator. In this case, the caller must generate the IV. |
541 | 541 | </para> |
542 | 542 |
|
543 | 543 | <para> |
@@ -584,8 +584,8 @@ kernel crypto API | IPSEC Layer |
584 | 584 | | |
585 | 585 | +-----------+ | |
586 | 586 | | | (1) |
587 | | -| givcipher | <----------------------------------- esp_output |
588 | | -| (seqiv) | ---+ |
| 587 | +| aead | <----------------------------------- esp_output |
| 588 | +| (seqniv) | ---+ |
589 | 589 | +-----------+ | |
590 | 590 | | (2) |
591 | 591 | +-----------+ | |
@@ -620,8 +620,8 @@ kernel crypto API | IPSEC Layer |
620 | 620 | <orderedlist> |
621 | 621 | <listitem> |
622 | 622 | <para> |
623 | | - esp_output() invokes crypto_aead_givencrypt() to trigger an encryption |
624 | | - operation of the GIVCIPHER implementation. |
| 623 | + esp_output() invokes crypto_aead_encrypt() to trigger an encryption |
| 624 | + operation of the AEAD cipher with IV generator. |
625 | 625 | </para> |
626 | 626 |
|
627 | 627 | <para> |
@@ -1669,6 +1669,16 @@ read(opfd, out, outlen); |
1669 | 1669 | </chapter> |
1670 | 1670 |
|
1671 | 1671 | <chapter id="API"><title>Programming Interface</title> |
| 1672 | + <para> |
| 1673 | + Please note that the kernel crypto API contains the AEAD givcrypt |
| 1674 | + API (crypto_aead_giv* and aead_givcrypt_* function calls in |
| 1675 | + include/crypto/aead.h). This API is obsolete and will be removed |
| 1676 | + in the future. To obtain the functionality of an AEAD cipher with |
| 1677 | + internal IV generation, use the IV generator as a regular cipher. |
| 1678 | + For example, rfc4106(gcm(aes)) is the AEAD cipher with external |
| 1679 | + IV generation and seqniv(rfc4106(gcm(aes))) implies that the kernel |
| 1680 | + crypto API generates the IV. Different IV generators are available. |
| 1681 | + </para> |
1672 | 1682 | <sect1><title>Block Cipher Context Data Structures</title> |
1673 | 1683 | !Pinclude/linux/crypto.h Block Cipher Context Data Structures |
1674 | 1684 | !Finclude/crypto/aead.h aead_request |
@@ -1724,6 +1734,7 @@ read(opfd, out, outlen); |
1724 | 1734 | !Finclude/crypto/aead.h aead_request_set_callback |
1725 | 1735 | !Finclude/crypto/aead.h aead_request_set_crypt |
1726 | 1736 | !Finclude/crypto/aead.h aead_request_set_assoc |
| 1737 | +!Finclude/crypto/aead.h aead_request_set_ad |
1727 | 1738 | </sect1> |
1728 | 1739 | <sect1><title>Synchronous Block Cipher API</title> |
1729 | 1740 | !Pinclude/linux/crypto.h Synchronous Block Cipher API |
|
0 commit comments