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.cpp54 const uint8_t *src, uint8_t *dst, int nbytes, in DoCrypt() argument
65 if (nbytes % kAesBlockSize != 0) { in DoCrypt()
88 memmove(dst, src, nbytes); in DoCrypt()
91 DoXtsMasking(dst, nbytes / kAesBlockSize, tweak); in DoCrypt()
100 if (EVP_CipherUpdate(ctx.get(), dst, &outl, dst, nbytes) != 1 || in DoCrypt()
101 outl != nbytes) { in DoCrypt()
106 DoXtsMasking(dst, nbytes / kAesBlockSize, tweak); in DoCrypt()
Dvts_kernel_encryption.h31 const uint8_t *src, uint8_t *dst, int nbytes) const { in Encrypt() argument
36 return DoCrypt(key.data(), iv, src, dst, nbytes, true); in Encrypt()
39 const uint8_t *src, uint8_t *dst, int nbytes) const { in Decrypt() argument
44 return DoCrypt(key.data(), iv, src, dst, nbytes, false); in Decrypt()
51 const uint8_t *src, uint8_t *dst, int nbytes,
68 uint8_t *dst, int nbytes, bool encrypt) const;
85 uint8_t *dst, int nbytes, bool encrypt) 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()
283 const uint8_t *src, uint8_t *dst, int nbytes, in DoCrypt() argument
293 if (nbytes < kAesBlockSize) { in DoCrypt()
313 const int bulk_len = nbytes - kAesBlockSize; in DoCrypt()