| 1062 | |
| 1063 | namespace { |
| 1064 | bool encrypts(const KeyMaterial_AES_GCM_GMAC& k) |
| 1065 | { |
| 1066 | const CryptoTransformKind& kind = k.transformation_kind; |
| 1067 | return kind[0] == 0 && kind[1] == 0 && kind[2] == 0 |
| 1068 | && (kind[TransformKindIndex] == CRYPTO_TRANSFORMATION_KIND_AES128_GCM || |
| 1069 | kind[TransformKindIndex] == CRYPTO_TRANSFORMATION_KIND_AES256_GCM); |
| 1070 | } |
| 1071 | |
| 1072 | bool authenticates(const KeyMaterial_AES_GCM_GMAC& k) |
| 1073 | { |
no outgoing calls
no test coverage detected