X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=fips%2Ffips_locl.h;fp=fips%2Ffips_locl.h;h=3273ba6a83e9fa920d1b2604374f2892ae2b565c;hp=b79865e469e849500203d9c365fb54351bd3b067;hb=3d607309e63ea88d5a8bd1caebeeca40a0dba0ca;hpb=49cb5e0b408d24fbd2fe197a18be64068cac1277 diff --git a/fips/fips_locl.h b/fips/fips_locl.h index b79865e469..3273ba6a83 100644 --- a/fips/fips_locl.h +++ b/fips/fips_locl.h @@ -1,5 +1,5 @@ /* ==================================================================== - * Copyright (c) 2003 The OpenSSL Project. All rights reserved. + * Copyright (c) 2011 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -54,6 +54,10 @@ extern "C" { #endif #define FIPS_MAX_CIPHER_TEST_SIZE 16 +#define fips_load_key_component(key, comp, pre) \ + key->comp = BN_bin2bn(pre##_##comp, sizeof(pre##_##comp), key->comp); \ + if (!key->comp) \ + goto err #ifdef __cplusplus }