1 /*############################################################################
2 # Copyright 2016 Intel Corporation
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 ############################################################################*/
16
17 /*!
18 * \file
19 * \brief Epid11AreSigsLinked implementation.
20 */
21
22 #include <string.h>
23 #include "epid/verifier/1.1/api.h"
24
Epid11AreSigsLinked(Epid11BasicSignature const * sig1,Epid11BasicSignature const * sig2)25 bool Epid11AreSigsLinked(Epid11BasicSignature const* sig1,
26 Epid11BasicSignature const* sig2) {
27 return (sig1 && sig2 && 0 == memcmp(&sig1->B, &sig2->B, sizeof(sig2->B)) &&
28 0 == memcmp(&sig1->K, &sig2->K, sizeof(sig2->K)));
29 }
30