Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 3 of 3) sorted by relevance

/test/vts-testcase/kernel/encryption/
Daes_256_xts.cpp55 int nbytes) const { in DoEncrypt()
64 if (nbytes % kAesBlockSize != 0) { in DoEncrypt()
87 memmove(dst, src, nbytes); in DoEncrypt()
90 DoXtsMasking(dst, nbytes / kAesBlockSize, tweak); in DoEncrypt()
98 if (EVP_EncryptUpdate(ctx.get(), dst, &outl, dst, nbytes) != 1 || in DoEncrypt()
99 outl != nbytes) { in DoEncrypt()
104 DoXtsMasking(dst, nbytes / kAesBlockSize, tweak); in DoEncrypt()
Dvts_kernel_encryption.h31 const uint8_t *src, uint8_t *dst, int nbytes) const { in Encrypt() argument
36 return DoEncrypt(key.data(), iv, src, dst, nbytes); in Encrypt()
40 int nbytes) const = 0;
54 uint8_t *dst, int nbytes) const;
69 uint8_t *dst, int nbytes) const;
Dadiantum.cpp134 uint8_t *dst, int nbytes, int nrounds) { in XChaCha() argument
150 for (i = 0; i < nbytes; i += 64) { in XChaCha()
160 for (j = 0; j < std::min(nbytes - i, 64); j++) in XChaCha()
179 const uint8_t *src, uint8_t *dst, int nbytes) { in XChaCha12() argument
180 XChaCha(key, nonce, src, dst, nbytes, 12); in XChaCha12()
284 int nbytes) const { in DoEncrypt()
292 if (nbytes < kAesBlockSize) { in DoEncrypt()
308 const int bulk_len = nbytes - kAesBlockSize; in DoEncrypt()