         }
         return (priv, pub)
     }
-    
+
     /**
      * The block size of the key. Wraps `SecKeyGetBlockSize()`.
      */

     *                       then something else failed.
     */
    case GenerateKeyPairFailed(osStatus: OSStatus?)
}
     *
     * - parameter ofSize: the size of the keys in bits
     * - returns: The generated key pair.
     * - throws: A `SecKeyError` when something went wrong.
     */
    public static func generateKeyPair(ofSize bits:UInt) throws -> (privateKey:SecKey, publicKey:SecKey) {
        let pubKeyAttrs = [ kSecAttrIsPermanent as String: true ]
