aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/aead/aead.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/modes/aead/aead.h')
-rw-r--r--src/lib/modes/aead/aead.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/modes/aead/aead.h b/src/lib/modes/aead/aead.h
index 6bbb39dcb..1fff41f97 100644
--- a/src/lib/modes/aead/aead.h
+++ b/src/lib/modes/aead/aead.h
@@ -41,13 +41,13 @@ class BOTAN_DLL AEAD_Mode : public Cipher_Mode
template<typename Alloc>
void set_associated_data_vec(const std::vector<byte, Alloc>& ad)
{
- set_associated_data(&ad[0], ad.size());
+ set_associated_data(ad.data(), ad.size());
}
template<typename Alloc>
void set_ad(const std::vector<byte, Alloc>& ad)
{
- set_associated_data(&ad[0], ad.size());
+ set_associated_data(ad.data(), ad.size());
}
/**