INNER CODE UNIT · Swift
nativeValue
Kitura/BlueCryptor · Sources/Cryptor/HMAC.swift:70
func nativeValue() -> CCHmacAlgorithm {
switch self {
case .sha1:
return CCHmacAlgorithm(kCCHmacAlgSHA1)
case .md5:
return CCHmacAlgorithm(kCCHmacAlgMD5)
case .sha224:
return CCHmacAlgorithm(kCCHmacAlgSHA224)
case .sha256:
return CCHmacAlgorithm(kCCHmacAlgSHA256)
case .sha384:
return CCHmacAlgorithm(kCCHmacAlgSHA384)
case .sha512:
return CCHmacAlgorithm(kCCHmacAlgSHA512)
}
}