summaryrefslogtreecommitdiff
path: root/include/fpsensor_crypto.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:11:26 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 02:22:05 +0000
commite4e12e57b2da06f1ba6c2a323c5eba2b2ae5972b (patch)
tree0bbf0259f203ff625b9c5754031d441a1526ae09 /include/fpsensor_crypto.h
parenta80f9958b97c4bc502ae4a7a3bac512fc14f9515 (diff)
downloadchrome-ec-e4e12e57b2da06f1ba6c2a323c5eba2b2ae5972b.tar.gz
include/fpsensor_crypto.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ic058dacf90f8ca65f082db924f0871fa2a614285 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730290 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include/fpsensor_crypto.h')
-rw-r--r--include/fpsensor_crypto.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/fpsensor_crypto.h b/include/fpsensor_crypto.h
index b6252b3fd2..4744d6e4aa 100644
--- a/include/fpsensor_crypto.h
+++ b/include/fpsensor_crypto.h
@@ -67,11 +67,9 @@ int derive_positive_match_secret(uint8_t *output,
* @param tag_size the size of |tag|.
* @return EC_SUCCESS on success and error code otherwise.
*/
-int aes_gcm_encrypt(const uint8_t *key, int key_size,
- const uint8_t *plaintext,
- uint8_t *ciphertext, int text_size,
- const uint8_t *nonce, int nonce_size,
- uint8_t *tag, int tag_size);
+int aes_gcm_encrypt(const uint8_t *key, int key_size, const uint8_t *plaintext,
+ uint8_t *ciphertext, int text_size, const uint8_t *nonce,
+ int nonce_size, uint8_t *tag, int tag_size);
/**
* Decrypt |plaintext| using AES-GCM128.
@@ -89,7 +87,7 @@ int aes_gcm_encrypt(const uint8_t *key, int key_size,
*/
int aes_gcm_decrypt(const uint8_t *key, int key_size, uint8_t *plaintext,
const uint8_t *ciphertext, int text_size,
- const uint8_t *nonce, int nonce_size,
- const uint8_t *tag, int tag_size);
+ const uint8_t *nonce, int nonce_size, const uint8_t *tag,
+ int tag_size);
#endif /* __CROS_EC_FPSENSOR_CRYPTO_H */