OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "crypto/aead.h" | 5 #include "crypto/aead.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 size_t Aead::KeyLength() const { | 115 size_t Aead::KeyLength() const { |
116 return EVP_AEAD_key_length(aead_); | 116 return EVP_AEAD_key_length(aead_); |
117 } | 117 } |
118 | 118 |
119 size_t Aead::NonceLength() const { | 119 size_t Aead::NonceLength() const { |
120 return EVP_AEAD_nonce_length(aead_); | 120 return EVP_AEAD_nonce_length(aead_); |
121 } | 121 } |
122 | 122 |
123 } // namespace | 123 } // namespace crypto |
OLD | NEW |