Lines Matching refs:key_blob
187 } key_blob;
190 key_blob.hdr.bType = PLAINTEXTKEYBLOB;
191 key_blob.hdr.bVersion = CUR_BLOB_VERSION;
192 key_blob.hdr.reserved = 0;
193 key_blob.hdr.aiKeyAlg = CALG_DES;
194 key_blob.len = 8;
200 key_blob.key[i] = (tmp >> i) | next | 1;
203 key_blob.key[i] = next | 1;
212 if (!CryptImportKey(prov, (BYTE *) &key_blob, sizeof(key_blob), 0, 0,
267 } key_blob;
273 key_blob.hdr.bType = PLAINTEXTKEYBLOB;
274 key_blob.hdr.bVersion = CUR_BLOB_VERSION;
275 key_blob.hdr.reserved = 0;
276 key_blob.hdr.aiKeyAlg = CALG_AES_128;
277 key_blob.len = len;
278 os_memcpy(key_blob.key, key, len);
293 if (!CryptImportKey(akey->prov, (BYTE *) &key_blob, sizeof(key_blob),
386 } key_blob;
388 os_memset(&key_blob, 0, sizeof(key_blob));
399 key_blob.hdr.bType = PLAINTEXTKEYBLOB;
400 key_blob.hdr.bVersion = CUR_BLOB_VERSION;
401 key_blob.hdr.reserved = 0;
408 key_blob.hdr.aiKeyAlg = CALG_RC2;
409 key_blob.len = key_len;
410 if (key_len > sizeof(key_blob.key))
412 os_memcpy(key_blob.key, key, key_len);
434 if (!CryptImportKey(ctx->prov, (BYTE *) &key_blob,
435 sizeof(key_blob), 0, CRYPT_IPSEC_HMAC_KEY,
541 } key_blob;
544 key_blob.hdr.bType = PLAINTEXTKEYBLOB;
545 key_blob.hdr.bVersion = CUR_BLOB_VERSION;
546 key_blob.hdr.reserved = 0;
547 key_blob.len = key_len;
548 if (key_len > sizeof(key_blob.key))
550 os_memcpy(key_blob.key, key, key_len);
555 key_blob.hdr.aiKeyAlg = CALG_AES_256;
557 key_blob.hdr.aiKeyAlg = CALG_AES_192;
559 key_blob.hdr.aiKeyAlg = CALG_AES_128;
562 key_blob.hdr.aiKeyAlg = CALG_3DES;
565 key_blob.hdr.aiKeyAlg = CALG_DES;
568 key_blob.hdr.aiKeyAlg = CALG_RC2;
571 key_blob.hdr.aiKeyAlg = CALG_RC4;
587 if (!CryptImportKey(ctx->prov, (BYTE *) &key_blob,
588 sizeof(key_blob), 0, 0, &ctx->key)) {