diff options
Diffstat (limited to 'crypto/rsa_helper.c')
| -rw-r--r-- | crypto/rsa_helper.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/crypto/rsa_helper.c b/crypto/rsa_helper.c index 0b66dc824606..94266f29049c 100644 --- a/crypto/rsa_helper.c +++ b/crypto/rsa_helper.c @@ -1,22 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * RSA key extract helper * * Copyright (c) 2015, Intel Corporation * Authors: Tadeusz Struk <tadeusz.struk@intel.com> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your option) - * any later version. - * */ #include <linux/kernel.h> #include <linux/export.h> #include <linux/err.h> #include <linux/fips.h> #include <crypto/internal/rsa.h> -#include "rsapubkey-asn1.h" -#include "rsaprivkey-asn1.h" +#include "rsapubkey.asn1.h" +#include "rsaprivkey.asn1.h" int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) @@ -30,7 +25,7 @@ int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, return -EINVAL; if (fips_enabled) { - while (!*ptr && n_sz) { + while (n_sz && !*ptr) { ptr++; n_sz--; } |
