Add Cipher.embedsDigest to signal digest embedding
Currently GCM ciphers do.
This commit is contained in:
parent
be97972f18
commit
e121555f82
|
@ -55,6 +55,11 @@ extension SessionProxy {
|
||||||
|
|
||||||
/// AES encryption with 256-bit key size and GCM.
|
/// AES encryption with 256-bit key size and GCM.
|
||||||
case aes256gcm = "AES-256-GCM"
|
case aes256gcm = "AES-256-GCM"
|
||||||
|
|
||||||
|
/// Digest should be ignored when this is `true`.
|
||||||
|
public var embedsDigest: Bool {
|
||||||
|
return rawValue.hasSuffix("-GCM")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The available message digest algorithms.
|
/// The available message digest algorithms.
|
||||||
|
|
Loading…
Reference in New Issue