You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
467 B

  1. --- a/gost_pmeth.c
  2. +++ b/gost_pmeth.c
  3. @@ -608,7 +608,7 @@ static int pkey_gost_mac_ctrl_str(EVP_PK
  4. if (strcmp(type, hexkey_ctrl_string) == 0) {
  5. long keylen;
  6. int ret;
  7. - unsigned char *keybuf = string_to_hex(value, &keylen);
  8. + unsigned char *keybuf = OPENSSL_hexstr2buf(value, &keylen);
  9. if (!keybuf || keylen != 32) {
  10. GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL_STR,
  11. GOST_R_INVALID_MAC_KEY_LENGTH);