Skip to content

Commit 5609086

Browse files
committed
Temporarily guard OCB constants not available in boring
1 parent 086085c commit 5609086

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ncrypto.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3250,9 +3250,13 @@ const Cipher Cipher::AES_256_GCM = Cipher::FromNid(NID_aes_256_gcm);
32503250
const Cipher Cipher::AES_128_KW = Cipher::FromNid(NID_id_aes128_wrap);
32513251
const Cipher Cipher::AES_192_KW = Cipher::FromNid(NID_id_aes192_wrap);
32523252
const Cipher Cipher::AES_256_KW = Cipher::FromNid(NID_id_aes256_wrap);
3253+
3254+
#ifndef OPENSSL_IS_BORINGSSL
32533255
const Cipher Cipher::AES_128_OCB = Cipher::FromNid(NID_aes_128_ocb);
32543256
const Cipher Cipher::AES_192_OCB = Cipher::FromNid(NID_aes_192_ocb);
32553257
const Cipher Cipher::AES_256_OCB = Cipher::FromNid(NID_aes_256_ocb);
3258+
#endif
3259+
32563260
const Cipher Cipher::CHACHA20_POLY1305 = Cipher::FromNid(NID_chacha20_poly1305);
32573261

32583262
bool Cipher::isGcmMode() const {

0 commit comments

Comments
 (0)