SwCrypt icon indicating copy to clipboard operation
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

Results 28 SwCrypt issues
Sort by recently updated
recently updated
newest added

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 ![Ảnh chụp Màn hình 2021-12-07 lúc 20 50...

Hi, i do not find any demo here? Do you provide some demo projects? Thanks

![image](https://user-images.githubusercontent.com/12890610/143521342-0fe0e3fa-de77-4f9a-873f-54c79e78f5d4.png) 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...