Home | History | Annotate | Download | only in lib

Lines Matching defs:sig

25   VbSignature* sig = (VbSignature*)malloc(sizeof(VbSignature) + sig_size);
26 if (!sig)
29 sig->sig_offset = sizeof(VbSignature);
30 sig->sig_size = sig_size;
31 sig->data_size = data_size;
32 return sig;
36 void SignatureInit(VbSignature* sig, uint8_t* sig_data,
38 sig->sig_offset = OffsetOf(sig, sig_data);
39 sig->sig_size = sig_size;
40 sig->data_size = data_size;
57 VbSignature* sig;
63 sig = SignatureAlloc(SHA512_DIGEST_SIZE, 0);
64 if (!sig) {
68 sig->sig_offset = sizeof(VbSignature);
69 sig->sig_size = SHA512_DIGEST_SIZE;
70 sig->data_size = size;
73 Memcpy(GetSignatureData(sig), header_checksum, SHA512_DIGEST_SIZE);
75 return sig;
82 VbSignature* sig = NULL;
90 sig = SignatureAlloc(digest_size, size);
91 if (!sig) {
97 Memcpy(GetSignatureData(sig), digest, digest_size);
101 return sig;
116 VbSignature* sig;
136 sig = SignatureAlloc(siglen_map[key->algorithm], size);
137 if (!sig) {
145 GetSignatureData(sig), /* Output sig */
152 free(sig);
157 return sig;
261 VbSignature* sig;
281 sig = SignatureAlloc(siglen_map[key_algorithm], size);
282 if (!sig) {
290 GetSignatureData(sig), /* Output sig */
291 siglen_map[key_algorithm], /* Max Output sig size */
298 free(sig);
303 return sig;