diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-14 10:16:53 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-14 10:16:53 +0200 |
commit | 161f08b8a15a9b0d2c5aede4a4ffba5bf092b893 (patch) | |
tree | 20e30ed1363ae72cf0a32de7bee76e74a46ed6ab /examples/ncr.c | |
parent | 444f09343e82e2aa209d0454f51f3b0d07bb1abc (diff) | |
download | cryptodev-linux-161f08b8a15a9b0d2c5aede4a4ffba5bf092b893.tar.gz cryptodev-linux-161f08b8a15a9b0d2c5aede4a4ffba5bf092b893.tar.xz cryptodev-linux-161f08b8a15a9b0d2c5aede4a4ffba5bf092b893.zip |
OP_MAC was deprecated by OP_SIGN.
Diffstat (limited to 'examples/ncr.c')
-rw-r--r-- | examples/ncr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/ncr.c b/examples/ncr.c index cc7b463..bb3d006 100644 --- a/examples/ncr.c +++ b/examples/ncr.c @@ -973,7 +973,7 @@ struct hash_vectors_st { .plaintext_size = sizeof("what do ya want for nothing?")-1, .output = (uint8_t*)"\x75\x0c\x78\x3e\x6a\xb0\xb5\x03\xea\xa8\x6e\x31\x0a\x5d\xb7\x38", .output_size = 16, - .op = NCR_OP_MAC, + .op = NCR_OP_SIGN, }, /* from rfc4231 */ { @@ -985,7 +985,7 @@ struct hash_vectors_st { .plaintext_size = sizeof("Hi There")-1, .output = (uint8_t*)"\x89\x6f\xb1\x12\x8a\xbb\xdf\x19\x68\x32\x10\x7c\xd4\x9d\xf3\x3f\x47\xb4\xb1\x16\x99\x12\xba\x4f\x53\x68\x4b\x22", .output_size = 28, - .op = NCR_OP_MAC, + .op = NCR_OP_SIGN, }, { .name = "HMAC-SHA256", @@ -996,7 +996,7 @@ struct hash_vectors_st { .plaintext_size = sizeof("Hi There")-1, .output = (uint8_t*)"\xb0\x34\x4c\x61\xd8\xdb\x38\x53\x5c\xa8\xaf\xce\xaf\x0b\xf1\x2b\x88\x1d\xc2\x00\xc9\x83\x3d\xa7\x26\xe9\x37\x6c\x2e\x32\xcf\xf7", .output_size = 32, - .op = NCR_OP_MAC, + .op = NCR_OP_SIGN, }, { .name = "HMAC-SHA384", @@ -1007,7 +1007,7 @@ struct hash_vectors_st { .plaintext_size = sizeof("Hi There")-1, .output = (uint8_t*)"\xaf\xd0\x39\x44\xd8\x48\x95\x62\x6b\x08\x25\xf4\xab\x46\x90\x7f\x15\xf9\xda\xdb\xe4\x10\x1e\xc6\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c\xfa\xea\x9e\xa9\x07\x6e\xde\x7f\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6", .output_size = 48, - .op = NCR_OP_MAC, + .op = NCR_OP_SIGN, }, { .name = "HMAC-SHA512", @@ -1018,7 +1018,7 @@ struct hash_vectors_st { .plaintext_size = sizeof("Hi There")-1, .output = (uint8_t*)"\x87\xaa\x7c\xde\xa5\xef\x61\x9d\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0\x23\x79\xf4\xe2\xce\x4e\xc2\x78\x7a\xd0\xb3\x05\x45\xe1\x7c\xde\xda\xa8\x33\xb7\xd6\xb8\xa7\x02\x03\x8b\x27\x4e\xae\xa3\xf4\xe4\xbe\x9d\x91\x4e\xeb\x61\xf1\x70\x2e\x69\x6c\x20\x3a\x12\x68\x54", .output_size = 64, - .op = NCR_OP_MAC, + .op = NCR_OP_SIGN, }, }; |