ECDSASignature
A P-384 elliptic curve digital signature algorithm (ECDSA) signature.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
struct ECDSASignature
A P-384 elliptic curve digital signature algorithm (ECDSA) signature.
struct ECDSASignature
import Crypto
A cryptography library for Swift.
enum Signing
A mechanism used to create or verify a cryptographic signature using the NIST P-384 elliptic curve digital signature algorithm (ECDSA).
enum P384
An elliptic curve that enables NIST P-384 signatures and key agreement.
struct PrivateKey
A P-384 private key used to create cryptographic signatures.
struct PublicKey
A P-384 public key used to verify cryptographic signatures.
protocol ContiguousBytes
Indicates that the conforming type is a contiguous collection of raw bytes whose underlying storage is directly accessible by withUnsafeBytes.
init<D>(derRepresentation: D) throws where D : DataProtocol
Creates a P-384 digital signature from a Distinguished Encoding Rules (DER) encoded representation.
init<D>(rawRepresentation: D) throws where D : DataProtocol
Creates a P-384 digital signature from a raw representation.
var derRepresentation: Data { get }
A Distinguished Encoding Rules (DER) encoded representation of a P-384 digital signature.
var rawRepresentation: Data
A raw data representation of a P-384 digital signature.
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
Invokes the given closure with a buffer pointer covering the raw bytes of the signature.