| 1070 | } |
| 1071 | |
| 1072 | bool authenticates(const KeyMaterial_AES_GCM_GMAC& k) |
| 1073 | { |
| 1074 | const CryptoTransformKind& kind = k.transformation_kind; |
| 1075 | return kind[0] == 0 && kind[1] == 0 && kind[2] == 0 |
| 1076 | && (kind[TransformKindIndex] == CRYPTO_TRANSFORMATION_KIND_AES128_GMAC || |
| 1077 | kind[TransformKindIndex] == CRYPTO_TRANSFORMATION_KIND_AES256_GMAC); |
| 1078 | } |
| 1079 | |
| 1080 | struct CipherContext { |
| 1081 | EVP_CIPHER_CTX* ctx_; |
no outgoing calls
no test coverage detected