|
1 |
| -# Message Authentication Codes Concepts {#mac_concepts} |
| 1 | +# Message Authentication Codes Concepts # {#mac_concepts} |
2 | 2 |
|
3 |
| -## Message Authentication Code Concept {#mac_concept} |
| 3 | +## MessageAuthenticationCode Concept ## {#mac_concept} |
| 4 | + |
| 5 | +A ```MessageAuthenticationCode``` is an object intended to compute non-isomorphic permutations over particular sized integers (e.g. rijndael). |
| 6 | + |
| 7 | +### Requirements ### {#block_ciphers_concepts_requirements} |
| 8 | + |
| 9 | +The type ```X``` satisfies ```MessageAuthenticationCode``` if |
| 10 | + |
| 11 | +Given |
| 12 | +* ```KeyType```, the type named by ```X::key_type``` |
| 13 | +* ```BlockType```, the type named by ```X::block_type``` |
| 14 | +* ```DigestType```, the type named by ```X::digest_type``` |
| 15 | + |
| 16 | +The following type members must be valid and have their specified effects |
| 17 | + |
| 18 | +|Expression |Type |Requirements and Notes | |
| 19 | +|-----------------------------|----------------|-------------------------------| |
| 20 | +|```X::block_type``` |```BlockType``` |```BlockType``` type is a ```SequenceContainer``` of type ```T``` or ```std::array<T>```| |
| 21 | +|```X::word_type``` |```WordType``` |```WordType``` type satisfies ```Integral``` concept| |
| 22 | +|```X::digest_type``` |```DigestType```|```DigestType``` type is a ```SequenceContainer``` of type ```T```| |
| 23 | + |
| 24 | +The following static data member definitions must be valid and have their specified effects |
| 25 | + |
| 26 | +|Expression |Type |Requirements and Notes | |
| 27 | +|--------------------|-----------------|---------------------------------------| |
| 28 | +|```X::digest_bits```|```std::size_t```|```Integral``` bits amount in ```DigestType```| |
| 29 | +|```X::key_bits``` |```std::size_t```|```Integral``` bits amount in ```KeyType```| |
| 30 | +|```X::block_bits``` |```std::size_t```|```Integral``` bits amount in ```BlockType```| |
| 31 | +|```X::block_words```|```std::size_t```|```Integral``` amount of ```WordType``` values in ```BlockType```| |
| 32 | + |
| 33 | +The following expressions must be valid and have their specified effects |
| 34 | + |
| 35 | +|Expression |Requirements |Return Type | |
| 36 | +|---------------------------|------------------|-------------------------------| |
| 37 | +|```X(key_type)```|Constructs stateful ```MessageAuthenticationCode``` object with input key of ```key_type```|```MessageAuthenticationCode```| |
0 commit comments