SwCrypt
SwCrypt copied to clipboard
RSA public/private key generation, RSA, AES encryption/decryption, RSA sign/verify in Swift with CommonCrypto in iOS and OS X
I am using an external library that expects RSA based private/public key pair in SecKey format. I couldn't find a way to convert DER based key pair in SecKey format...
Application using SwCrypt crashing on ref = CCDHCreate!(kCCDHRFC3526Group5!) In the following Code "fileprivate static let kCCDHRFC3526Group5M: kCCDHRFC3526Group5TM? = getFunc(dl!, f: "kCCDHRFC3526Group5") fileprivate static let kCCDHRFC3526Group5 = kCCDHRFC3526Group5M?.pointee" kCCDHRFC3526Group5M value is...
hi, after generate keypair, i test with this website https://www.devglan.com/online-tools/rsa-encryption-decryption, it's success encrypt but fail to decrypt. You can see image here  Hello I have a problem when use spm swcrypt could not be resolved
String representation of Android RSA keys does not make use of standard PEM headers. In order to simplify export / import of public keys to / from Android, PEM headers...
Hello, awesome work, thanks a lot! Have found strange behaviour, I'm not a cryptographer and don't know where to dig to. A signature created with .pss padding and some salt...
Hi 👋 Firstly thanks for the work and the great library :) Currently in your DER encoding you are not stripping any leading 0 value octets. When generating a PKCS8...
Upon inspection of the code I saw that quite some `CommonCrypto`-function are used that aren't in the official `CommonCrypto`-headers. It is especially the Diffie-Hellmann stuff I am interested in. Has...