init(_:)
Construct a public key wrapping a P256 public key.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
init(_ p256: P256.Signing.PublicKey) Parameters
- p256
The P256 public key to wrap.
Construct a public key wrapping a P256 public key.
init(_ p256: P256.Signing.PublicKey) s4X50911CertificateV9PublicKeyVyAE6Crypto4P256O7SigningOADVcfc What are these?8S2SUThe P256 public key to wrap.
import X509A library for working with X.509 certificates.
struct PublicKeyA public key that can be used with a certificate.
struct Certificateenum P256An elliptic curve that enables NIST P-256 signatures and key agreement.
enum SigningA mechanism used to create or verify a cryptographic signature using the NIST P-256 elliptic curve digital signature algorithm (ECDSA).
struct PublicKeyA P-256 public key used to verify cryptographic signatures.
init(_ rsa: _RSA.Signing.PublicKey) Construct a public key wrapping a RSA public key.
init(_ ed25519: Curve25519.Signing.PublicKey) Construct a public key wrapping an Ed25519 public key.
init(_ p384: P384.Signing.PublicKey) Construct a public key wrapping a P384 public key.
init(_ p521: P521.Signing.PublicKey) Construct a public key wrapping a P521 public key.
init(derEncoded: ASN1Node, withIdentifier identifier: ASN1Identifier) throws static var defaultIdentifier: ASN1Identifier { get }static var defaultPEMDiscriminator: String { get }var description: String { get }var subjectPublicKeyInfoBytes: ArraySlice<UInt8> { get }The byte array of the public key used in the certificate.
func isValidSignature(_ signature: Certificate.Signature, for csr: CertificateSigningRequest) -> Bool Confirms that signature is a valid signature for csr, created by the private key associated with this public key.
func isValidSignature(_ signature: Certificate.Signature, for certificate: Certificate) -> Bool Confirms that signature is a valid signature for certificate, created by the private key associated with this public key.
func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws