mirror of https://github.com/openssl/openssl.git
				
				
				
			evp: updates for the new additional MAC_init arguments
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14310)
This commit is contained in:
		
							parent
							
								
									1dc28e742d
								
							
						
					
					
						commit
						cc2314a9f6
					
				|  | @ -105,9 +105,10 @@ size_t EVP_MAC_CTX_get_mac_size(EVP_MAC_CTX *ctx) | |||
|     return 0; | ||||
| } | ||||
| 
 | ||||
| int EVP_MAC_init(EVP_MAC_CTX *ctx) | ||||
| int EVP_MAC_init(EVP_MAC_CTX *ctx, const unsigned char *key, size_t keylen, | ||||
|                  const OSSL_PARAM params[]) | ||||
| { | ||||
|     return ctx->meth->init(ctx->data); | ||||
|     return ctx->meth->init(ctx->data, key, keylen, params); | ||||
| } | ||||
| 
 | ||||
| int EVP_MAC_update(EVP_MAC_CTX *ctx, const unsigned char *data, size_t datalen) | ||||
|  |  | |||
|  | @ -1144,7 +1144,8 @@ int EVP_MAC_CTX_get_params(EVP_MAC_CTX *ctx, OSSL_PARAM params[]); | |||
| int EVP_MAC_CTX_set_params(EVP_MAC_CTX *ctx, const OSSL_PARAM params[]); | ||||
| 
 | ||||
| size_t EVP_MAC_CTX_get_mac_size(EVP_MAC_CTX *ctx); | ||||
| int EVP_MAC_init(EVP_MAC_CTX *ctx); | ||||
| int EVP_MAC_init(EVP_MAC_CTX *ctx, const unsigned char *key, size_t keylen, | ||||
|                  const OSSL_PARAM params[]); | ||||
| int EVP_MAC_update(EVP_MAC_CTX *ctx, const unsigned char *data, size_t datalen); | ||||
| int EVP_MAC_final(EVP_MAC_CTX *ctx, | ||||
|                   unsigned char *out, size_t *outl, size_t outsize); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue