Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
c14e40f9
Commit
c14e40f9
authored
Nov 04, 2016
by
Francis Dupont
Browse files
[3908] Addressed last comments
parent
e981ca8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/cryptolink/botan_hmac.cc
View file @
c14e40f9
...
...
@@ -194,8 +194,6 @@ public:
if
(
digest_
.
empty
())
{
digest_
=
hmac_
->
final
();
}
// digest_.size() == size by construction
// if you are not convinced, add an assert()
return
(
Botan
::
same_mem
(
&
digest_
[
0
],
static_cast
<
const
unsigned
char
*>
(
sig
),
len
));
...
...
src/lib/cryptolink/openssl_common.h
View file @
c14e40f9
...
...
@@ -36,17 +36,11 @@ public:
explicit
SecBuf
()
:
vec_
(
std
::
vector
<
T
>
())
{}
explicit
SecBuf
(
size_t
n
,
const
T
&
value
=
T
())
:
vec_
(
std
::
vector
<
T
>
(
n
,
value
))
{}
explicit
SecBuf
(
size_t
n
,
const
T
&
value
=
T
())
:
vec_
(
n
,
value
)
{}
SecBuf
(
iterator
first
,
iterator
last
)
:
vec_
(
std
::
vector
<
T
>
(
first
,
last
))
{}
SecBuf
(
iterator
first
,
iterator
last
)
:
vec_
(
first
,
last
)
{}
SecBuf
(
const_iterator
first
,
const_iterator
last
)
:
vec_
(
std
::
vector
<
T
>
(
first
,
last
))
{}
SecBuf
(
const_iterator
first
,
const_iterator
last
)
:
vec_
(
first
,
last
)
{}
SecBuf
(
const
std
::
vector
<
T
>&
x
)
:
vec_
(
x
)
{}
...
...
src/lib/cryptolink/openssl_hmac.cc
View file @
c14e40f9
...
...
@@ -163,8 +163,6 @@ public:
if
(
len
>
size
)
{
len
=
size
;
}
// digest.size() == size by construction
// if you are not convinced, add an assert()
return
(
digest
.
same
(
sig
,
len
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment