Filippo Maguolo

Results 8 comments of Filippo Maguolo

Here is my code to present the color picker: let drColor = DRColorPickerColor(color: c) guard let colorPicker = DRColorPickerViewController.newColorPicker(with: drColor) else { return } colorPicker.rootViewController.showAlphaSlider = false colorPicker.rootViewController.importBlock = nil...

It does not change, "modalPresentationStyle" has effect on iPad only.

This library (in particular the ASN1 core parser) want to be a generic parser, while unfortunately asn.1 is frequently implemented as read/write methods know the structure. So I find out...

P7B have a slightly different encoding, here a sample code to read all the certificates without modifications: ``` // P7B should be encoded as PEM, so it need to get...

The `rawValue` needs a prefix, add `derEncodedSequence`, then you can create a SecCertificate: ``` let cer = pkcs7.mainBlock.sub(3)?.sub?.first?.rawValue?.derEncodedSequence let secCer = SecCertificateCreateWithData(nil, cer as NSData) ```

To create a SecCertificate you need a certificate in DER format not a PEM.

If you have a X509Cetrificate object, you must have created it with DER or PEM data, so if you have either one of them you don't have to pass through...

The signature algorithm identifier is present in the certificate first level and in the TBSCertificate (what I call with the variable "block1") and they have to be identical by spec,...