secured ~master (2021-08-15T23:59:33Z)
Dub
Repo
CryptoBlockHeader
secured
symmetric
Undocumented in source.
immutable
struct
CryptoBlockHeader {
immutable
ubyte
headerVersion
;
immutable
SymmetricAlgorithm
symmetric
;
immutable
HashAlgorithm
hash
;
immutable
KdfAlgorithm
kdf
;
immutable
uint
kdfIterations
;
immutable
ushort
scryptMemory
;
immutable
ushort
scryptParallelism
;
immutable
uint
sectionCount
;
immutable
uint
sectionNumber
;
immutable
uint
additionalLength
;
immutable
uint
encryptedLength
;
this
(SymmetricAlgorithm symAlg, HashAlgorithm hashAlg, KdfAlgorithm kdfAlg, uint iterations, ushort memory, ushort parallelism, uint sectionCount, uint sectionNumber, uint additionalLength, uint encryptedLength);
this
(ubyte[] header);
size_t
getBlockLength
[@property getter];
ushort
getHeaderLength
[@property getter];
}
Constructors
this
this
(SymmetricAlgorithm symAlg, HashAlgorithm hashAlg, KdfAlgorithm kdfAlg, uint iterations, ushort memory, ushort parallelism, uint sectionCount, uint sectionNumber, uint additionalLength, uint encryptedLength)
Undocumented in source.
this
this
(ubyte[] header)
Undocumented in source.
Members
Properties
getBlockLength
size_t
getBlockLength
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getHeaderLength
ushort
getHeaderLength
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
additionalLength
uint
additionalLength
;
Undocumented in source.
encryptedLength
uint
encryptedLength
;
Undocumented in source.
hash
HashAlgorithm
hash
;
Undocumented in source.
headerVersion
ubyte
headerVersion
;
Undocumented in source.
kdf
KdfAlgorithm
kdf
;
Undocumented in source.
kdfIterations
uint
kdfIterations
;
Undocumented in source.
scryptMemory
ushort
scryptMemory
;
Undocumented in source.
scryptParallelism
ushort
scryptParallelism
;
Undocumented in source.
sectionCount
uint
sectionCount
;
Undocumented in source.
sectionNumber
uint
sectionNumber
;
Undocumented in source.
symmetric
SymmetricAlgorithm
symmetric
;
Undocumented in source.
Meta
Source
See Implementation
secured
symmetric
enums
KdfAlgorithm
SymmetricAlgorithm
functions
decrypt
decrypt_ex
encrypt
encrypt_ex
getAuthLength
getCipherIVLength
getCipherKeyLength
getOpenSslCipher
isAeadCipher
manifest constants
CryptoHeaderVersion
structs
CryptoBlockHeader
variables
defaultChunkSize
defaultKdfIterations
defaultSCryptP
defaultSCryptR
maxSCryptMemory