]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/ec/ec_25519.c
Constify EC_KEY_*_oct2priv() input buffer
[thirdparty/openssl.git] / crypto / ec / ec_25519.c
index 035a415347e3105abccf3be54a4128b775abcb1e..df0ad8a0c0a738062133b1c84deb37dab0ab04a4 100644 (file)
@@ -155,7 +155,7 @@ static int x25519_keycopy(EC_KEY *dest, const EC_KEY *src)
     return x25519_init_private(dest, src->custom_data);
 }
 
-static int x25519_oct2priv(EC_KEY *eckey, unsigned char *buf, size_t len)
+static int x25519_oct2priv(EC_KEY *eckey, const unsigned char *buf, size_t len)
 {
     if (len != EC_X25519_KEYLEN)
         return 0;