Enumeration

SecPadding

The types of padding to use when you create or verify a digital signature.

Declaration

typedef enum SecPadding : uint32_t {
    ...
} SecPadding;

Topics

Constants

kSecPaddingNone

No padding.

kSecPaddingPKCS1

PKCS1 padding.

kSecPaddingPKCS1MD2

Data to be signed is an MD2 hash.

kSecPaddingPKCS1MD5

Data to be signed is an MD5 hash.

kSecPaddingPKCS1SHA1

Data to be signed is a SHA1 hash.

kSecPaddingPKCS1SHA224

Data to be signed is a SHA224 hash.

kSecPaddingPKCS1SHA256

Data to be signed is a SHA256 hash.

kSecPaddingPKCS1SHA384

Data to be signed is a SHA384 hash.

kSecPaddingPKCS1SHA512

Data to be signed is a SHA512 hash.

See Also

Legacy iOS Key Operations

SecKeyGeneratePair

Creates an asymmetric key pair.

SecKeyEncrypt

Encrypts a block of plaintext.

SecKeyDecrypt

Decrypts a block of ciphertext.

SecKeyRawSign

Generates a digital signature for a block of data.

SecKeyRawVerify

Verifies a digital signature.