"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "crypto/ec/ec_asn1.c" between
openssl-1.1.1f.tar.gz and openssl-1.1.1g.tar.gz

About: OpenSSL is a toolkit implementing the Transport Layer Security (TLS) protocols (including SSLv3) as well as a full-strength general purpose cryptographic library. Long Term Support (LTS) version (includes support for TLSv1.3).

ec_asn1.c  (openssl-1.1.1f):ec_asn1.c  (openssl-1.1.1g)
/* /*
* Copyright 2002-2019 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
* *
* Licensed under the OpenSSL license (the "License"). You may not use * Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy * this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at * in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html * https://www.openssl.org/source/license.html
*/ */
#include <string.h> #include <string.h>
#include "ec_local.h" #include "ec_local.h"
#include <openssl/err.h> #include <openssl/err.h>
skipping to change at line 1300 skipping to change at line 1300
return 0; return 0;
bs.length = (i + 7) / 8; bs.length = (i + 7) / 8;
bs.data = buf; bs.data = buf;
bs.type = V_ASN1_INTEGER; bs.type = V_ASN1_INTEGER;
/* If the top bit is set the asn1 encoding is 1 larger. */ /* If the top bit is set the asn1 encoding is 1 larger. */
buf[0] = 0xff; buf[0] = 0xff;
i = i2d_ASN1_INTEGER(&bs, NULL); i = i2d_ASN1_INTEGER(&bs, NULL);
i += i; /* r and s */ i += i; /* r and s */
ret = ASN1_object_size(1, i, V_ASN1_SEQUENCE); ret = ASN1_object_size(1, i, V_ASN1_SEQUENCE);
if (ret < 0)
return 0;
return ret; return ret;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)