-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cryptographic Message Syntax ASN.1 de/serialisation #14
Conversation
… type does not conform to `DERImplicitlyTaggable`
|
||
// TODO: support multiple signer infos. For this we need to validate that the binary representation of each element is lexicographically sorted. | ||
guard signerInfos.count <= 1 else { | ||
throw Error.multipleDigestAlgorithmsAreNotSupportedYet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumably this was meant to be the signer infos error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Thanks. Fixed in c33a826
enum CMSSignerIdentifier { | ||
enum CMSSignerIdentifier: DERParseable, DERSerializable, Hashable { | ||
|
||
private static let subjectKeyIdentifierIdentifier = ASN1Identifier(tagWithNumber: 0, tagClass: .contextSpecific) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe call this skiIdentifier
, repeating the word identifier feels weird here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, changed in c33a826
No description provided.