• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libopenssl/0002-cryptodev-Fix-issue-with-signature-generation.patch
Adam DuskettAdam Duskett committed f974a493f0318 Oct 2017
Raw file
Source viewDiff to previous
@@ -1398,9 +1494,10 @@ cryptodev_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
 
1
From 90fd7e8f1a316cda86ee442b43fcd7d5e5baeede Mon Sep 17 00:00:00 2001
2
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3
Date: Sat, 16 May 2015 18:55:08 +0200
4
Subject: cryptodev: Fix issue with signature generation
5
​
6
Forward port of 0001-cryptodev-Fix-issue-with-signature-generation.patch
7
from http://rt.openssl.org/Ticket/Display.html?id=2770&user=guest&pass=guest
8
It was originally targetted at 1.0.2-beta3.
9
​
10
Without this patch digest acceleration via cryptodev is broken.
11
​
12
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
13
Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com>
14
---
15
 crypto/engine/eng_cryptodev.c | 195 +++++++++++++++++++++++++++++++-----------
16
 1 file changed, 146 insertions(+), 49 deletions(-)
17
​
18
diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
19
index 926d95c..7021d9a 100644
20
--- a/crypto/engine/eng_cryptodev.c
21
+++ b/crypto/engine/eng_cryptodev.c
22
@@ -2,6 +2,7 @@
23
  * Copyright (c) 2002 Bob Beck <beck@openbsd.org>
24
  * Copyright (c) 2002 Theo de Raadt
25
  * Copyright (c) 2002 Markus Friedl
26
+ * Copyright (c) 2012 Nikos Mavrogiannopoulos
27
  * All rights reserved.
28
  *
29
  * Redistribution and use in source and binary forms, with or without
30
@@ -72,7 +73,6 @@ struct dev_crypto_state {
31
     struct session_op d_sess;
32
     int d_fd;
33
 # ifdef USE_CRYPTODEV_DIGESTS
34
-    char dummy_mac_key[HASH_MAX_LEN];
35
     unsigned char digest_res[HASH_MAX_LEN];
36
     char *mac_data;
37
     int mac_len;
38
@@ -189,8 +189,10 @@ static struct {
39
 static struct {
40
     int id;
41
     int nid;
42
-    int keylen;
43
+    int digestlen;
44
 } digests[] = {
45
+#if 0
46
+    /* HMAC is not supported */
47
     {
48
         CRYPTO_MD5_HMAC, NID_hmacWithMD5, 16
49
     },
50
@@ -198,15 +200,15 @@ static struct {
51
         CRYPTO_SHA1_HMAC, NID_hmacWithSHA1, 20
52
     },
53
     {
54
-        CRYPTO_RIPEMD160_HMAC, NID_ripemd160, 16
55
-        /* ? */
56
+        CRYPTO_SHA2_256_HMAC, NID_hmacWithSHA256, 32
57
     },
58
     {
59
-        CRYPTO_MD5_KPDK, NID_undef, 0
60
+        CRYPTO_SHA2_384_HMAC, NID_hmacWithSHA384, 48
61
     },
62
     {
63
-        CRYPTO_SHA1_KPDK, NID_undef, 0
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.