Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/contrib/lax_der_privatekey_parsing.c
/********************************************************************** | /*********************************************************************** | ||||
* Copyright (c) 2014, 2015 Pieter Wuille * | * Copyright (c) 2014, 2015 Pieter Wuille * | ||||
* Distributed under the MIT software license, see the accompanying * | * Distributed under the MIT software license, see the accompanying * | ||||
* file COPYING or http://www.opensource.org/licenses/mit-license.php.* | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* | ||||
**********************************************************************/ | ***********************************************************************/ | ||||
#include <string.h> | #include <string.h> | ||||
#include <secp256k1.h> | #include <secp256k1.h> | ||||
#include "lax_der_privatekey_parsing.h" | #include "lax_der_privatekey_parsing.h" | ||||
int ec_privkey_import_der(const secp256k1_context* ctx, unsigned char *out32, const unsigned char *privkey, size_t privkeylen) { | int ec_privkey_import_der(const secp256k1_context* ctx, unsigned char *out32, const unsigned char *privkey, size_t privkeylen) { | ||||
const unsigned char *end = privkey + privkeylen; | const unsigned char *end = privkey + privkeylen; | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |