withUnsafeBytes(_:)
Invokes the given closure with a buffer pointer covering the raw bytes of the signature.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
Invokes the given closure with a buffer pointer covering the raw bytes of the signature.
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
s6Crypto4P384O7SigningO14ECDSASignatureV15withUnsafeBytesyxxSWKXEKlF
What are these?8B9KT
import Crypto
A cryptography library for Swift.
struct ECDSASignature
A P-384 elliptic curve digital signature algorithm (ECDSA) signature.
enum P384
An elliptic curve that enables NIST P-384 signatures and key agreement.
enum Signing
A mechanism used to create or verify a cryptographic signature using the NIST P-384 elliptic curve digital signature algorithm (ECDSA).
@frozen struct UnsafeRawBufferPointer
A nonowning collection interface to the bytes in a region of memory.
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.