Browse Source

Import math functions

Marcin Krzyzanowski 6 years ago
parent
commit
2d36a41d89
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Sources/CryptoSwift/BlockMode/CCM.swift

+ 6 - 0
Sources/CryptoSwift/BlockMode/CCM.swift

@@ -16,6 +16,12 @@
 // https://tools.ietf.org/html/rfc3610
 // https://tools.ietf.org/html/rfc3610
 // https://csrc.nist.gov/publications/detail/sp/800-38c/final
 // https://csrc.nist.gov/publications/detail/sp/800-38c/final
 
 
+#if canImport(Darwin)
+import Darwin
+#else
+import Glibc
+#endif
+
 
 
 public struct CCM: StreamMode {
 public struct CCM: StreamMode {
     public enum Error: Swift.Error {
     public enum Error: Swift.Error {