Skip to content

Commit

Permalink
rename API wc_XChaCha20Poly1305_{encrypt,decrypt}_oneshot to wc_XChaC…
Browse files Browse the repository at this point in the history
…ha20Poly1305_{Encrypt,Decrypt}.
  • Loading branch information
douzzer committed Oct 21, 2020
1 parent c49b758 commit 34539f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wolfcrypto_shim.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ chacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len,
}

#define xchacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, nonce, key) \
DBG_PRNT_NZ(wc_XChaCha20Poly1305_encrypt_oneshot(dst, (src_len) + POLY1305_DIGEST_SIZE, src, src_len, ad, ad_len, nonce, XCHACHA20POLY1305_NONCE_SIZE, key, CHACHA20POLY1305_KEY_SIZE))
DBG_PRNT_NZ(wc_XChaCha20Poly1305_Encrypt(dst, (src_len) + POLY1305_DIGEST_SIZE, src, src_len, ad, ad_len, nonce, XCHACHA20POLY1305_NONCE_SIZE, key, CHACHA20POLY1305_KEY_SIZE))
#define xchacha20poly1305_decrypt(dst, src, src_len, ad, ad_len, nonce, key) \
(DBG_PRNT_NZ(wc_XChaCha20Poly1305_decrypt_oneshot(dst, (src_len) - POLY1305_DIGEST_SIZE, src, src_len, ad, ad_len, nonce, XCHACHA20POLY1305_NONCE_SIZE, key, CHACHA20POLY1305_KEY_SIZE)) == 0)
(DBG_PRNT_NZ(wc_XChaCha20Poly1305_Decrypt(dst, (src_len) - POLY1305_DIGEST_SIZE, src, src_len, ad, ad_len, nonce, XCHACHA20POLY1305_NONCE_SIZE, key, CHACHA20POLY1305_KEY_SIZE)) == 0)

#define chacha20poly1305_encrypt_sg_inplace(...) \
chacha20poly1305_encrypt_sg_inplace_wolfshim(__VA_ARGS__)
Expand Down

0 comments on commit 34539f9

Please sign in to comment.