func isValidSignature<D>(_ signature: P384.Signing.ECDSASignature, for data: D) -> Bool where D : DataProtocol
Verifies an elliptic curve digital signature algorithm (ECDSA)
signature on a block of data over the P-384 elliptic curve.
- Parameters:
- signature: The signature to verify.
- data: The signed data.
- Returns: A Boolean value that’s `true` if the signature is valid for
the given data; otherwise, `false`.
get · iOS 14.0+
derRepresentation
TypeScript
get derRepresentation(): ArrayBuffer
Swift declaration
var derRepresentation: Data { get }
A Distinguished Encoding Rules (DER) encoded representation of the public key.
init<Bytes>(derRepresentation: Bytes) throws where Bytes : RandomAccessCollection, Bytes.Element == UInt8
Creates a P-384 public key for signing from a Distinguished Encoding
Rules (DER) encoded representation.
- Parameters:
- derRepresentation: A DER-encoded representation of the key.
Creates a P-384 public key for signing from a Privacy-Enhanced Mail
(PEM) representation.
- Parameters:
- pemRepresentation: A PEM representation of the key.
get · iOS 14.0+
pemRepresentation
TypeScript
get pemRepresentation(): string
Swift declaration
var pemRepresentation: String { get }
A Privacy-Enhanced Mail (PEM) representation of the public key.
init<D>(rawRepresentation: D) throws where D : ContiguousBytes
Creates a P-384 public key for signing from a collection of bytes.
- Parameters:
- rawRepresentation: A raw representation of the key as a collection of
contiguous bytes.
init<Bytes>(compactRepresentation: Bytes) throws where Bytes : ContiguousBytes
Creates a P-384 public key for signing from a compact
representation of the key.
- Parameters:
- compactRepresentation: A compact representation of the key
as a collection of contiguous bytes.
init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : ContiguousBytes
Creates a P-384 public key for signing from a compressed representation of
the key.
- Parameters:
- compressedRepresentation: A compressed representation of the key as a collection
of contiguous bytes.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
P384.Signing.PublicKey.isValidSignature(_:for:)
This declaration needs Swift generic type arguments. (no canonical witness for D)