Commit 9c68ea2
refactor(core): dedupe ARKG HKDF — delegate to shared HkdfUtilities
Removes the private HkdfSha256 method from ArkgPrimitivesOpenSsl that
existed solely as a workaround because HkdfUtilities lived in the
wrong assembly (Yubico.YubiKey, unreachable from Core). Now that
HkdfUtilities is in Yubico.Core, ARKG can call the shared canonical
implementation.
44 lines of duplicated cryptographic code removed. ARKG KAT vectors
verify byte-for-byte equivalence with the previous local copy. The
.ToArray() calls at lines 271 + 291 are forced by downstream code
expecting byte[] (mk fed to HMACSHA256 ctor, shared returned as byte[]).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 786c5e9 commit 9c68ea2
1 file changed
Lines changed: 2 additions & 52 deletions
Lines changed: 2 additions & 52 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | 415 | | |
466 | 416 | | |
467 | 417 | | |
| |||
0 commit comments