Package-level declarations
Types
PKCS#8 Representation of a private key structure as per RFC 5208 Equality checks are performed wrt. cryptographic properties.
Representation of a public key structure
Interface which holds Asn1 Encoding of a signature of a specified algorithm Allows simple ASN1 - Raw transformation of signature values
Umbrella interface encompassing data integrity algorithms:
EC Curve Class jwkName really does use established JWK curve names
Representation of an encrypted private key structure as per RFC 5208
RFC 2104 HMAC
Key agreement private value. Always comes with the matching publicValue.
Key agreement public value. Must be PEM encodable/decodable.
This guards a secret. Do not expose it lightly!
Properties
Returns the length of a private key, when it is exported from iOS. This is handy, because Apple does not encode curve identifiers, but implies them based on the length of the key
Returns the length of a public key, when it is exported from iOS. This is handy, because Apple does not encode curve identifiers, but implies them based on the length of the key
An encryption algorithm's JCA name. This is publicly exposed because it could come in handy under very specific circumstances. Double and triple check before feeding this into Cipher.getInstance
!. Then think again, pull in Signum Supreme and call encryptorFor
/decryptorFor
on whatever pre-configured instance of AsymmetricEncryptionAlgorithm you will be actually using.
An encryption algorithm's JCA parameters. This is publicly exposed because it could come in handy under very specific circumstances. Double and triple check before feeding this into Cipher.init
!. Then think again, pull in Signum Supreme and call encryptorFor
/decryptorFor
on whatever pre-configured instance of AsymmetricEncryptionAlgorithm you will be actually using.
In Java EC signatures are returned as DER-encoded, RSA signatures however are raw bytearrays
A digest well-suited to operations on this curve, with output length near the curve's coordinate length.
Functions
Alias of equals provided for convenience (and alignment with SpecializedCryptoPublicKey)
Whether the actual underlying key (irrespective of any format-specific metadata) is equal
Returns the curve associated with a public key exported from iOS based on the length of the key material This is handy, because Apple does not encode curve identifiers, but implies them based on the length of the key
Returns the curve associated with a public key exported from iOS based on the length of the key material This is handy, because Apple does not encode curve identifiers, but implies them based on the length of the key
Get a pre-configured JCA Cipher instance for this algorithm to use for decryption
Get a pre-configured JCA Cipher instance for this algorithm to use for encryption
Get a pre-configured JCA instance for this algorithm
Get a pre-configured JCA instance for pre-hashed data for this algorithm
smart-casts the receiver to an X509SignatureAlgorithm.Supported if supported.
Parses a signature produced by the JCA digestwithECDSA algorithm.
In Java EC signatures are returned as DER-encoded, RSA signatures however are raw bytearrays
Parses a signature produced by the JCA digestWithECDSAinP1363Format algorithm.
throws if the X509SignatureAlgorithm is unsupported
Converts this X509Certificate to a java.security.cert.X509Certificate. This function is suspending, because it uses a mutex to lock the underlying certificate factory (which is reused for performance reasons
blocking implementation of toJcaCertificate
Converts this java.security.cert.X509Certificate to an X509Certificate
Converts this privateKey into a SecKeyRef, making it usable on iOS
Finds a X.509 signature algorithm matching this algorithm. Curve restrictions are not preserved.