EncryptionAlgorithmParams
internal struct EncryptionAlgorithmParams
The EncryptionAlgorithmParams
struct stores parameters associated with various encryption algorithms,
allowing for easy access and retrieval. These parameters include the algorithm identifier, block size,
and key size.
See also
EncryptionAlgorithm
-
Declaration
Swift
typealias Algorithm = CCAlgorithm
-
Declaration
Swift
typealias Blocksize = Int
-
Declaration
Swift
typealias Keysize = size_t
-
The identifier of the encryption algorithm.
Declaration
Swift
private(set) var algorithm: Algorithm { get }
-
The size of the encryption algorithm’s block in bytes.
Declaration
Swift
private(set) var blockSize: Blocksize { get }
-
The size of the encryption algorithm’s key in bytes.
Declaration
Swift
private(set) var keySize: Keysize { get }
-
Initialize the struct with algorithm-specific parameters based on the provided
EncryptionAlgorithm
.Declaration
Swift
internal init(algorithm: EncryptionAlgorithm)
Parameters
algorithm
The
EncryptionAlgorithm
for which to retrieve parameters.