Changeset 97372 in vbox for trunk/src/libs/openssl-3.0.7/crypto/cmac
- Timestamp:
- Nov 2, 2022 7:40:16 AM (2 years ago)
- Location:
- trunk/src/libs/openssl-3.0.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.7
- Property svn:mergeinfo
-
old new 15 15 /vendor/openssl/3.0.2:150728-150729 16 16 /vendor/openssl/3.0.3:151497-151729 17 /vendor/openssl/current:147554-151496 17 /vendor/openssl/3.0.7:154371 18 /vendor/openssl/current:147554-154370
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.7/crypto/cmac/cmac.c
r94082 r97372 1 1 /* 2 * Copyright 2010-202 1The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 2010-2022 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 138 138 /* If anything fails then ensure we can't use this ctx */ 139 139 ctx->nlast_block = -1; 140 if ( !EVP_CIPHER_CTX_get0_cipher(ctx->cctx))141 return 0; 142 if ( !EVP_CIPHER_CTX_set_key_length(ctx->cctx, keylen))140 if (EVP_CIPHER_CTX_get0_cipher(ctx->cctx) == NULL) 141 return 0; 142 if (EVP_CIPHER_CTX_set_key_length(ctx->cctx, keylen) <= 0) 143 143 return 0; 144 144 if (!EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, key, zero_iv))
Note:
See TracChangeset
for help on using the changeset viewer.