Skip to content

Commit bc889e4

Browse files
AGWAericchiang
authored andcommitted
Rename skSignEd25519 to ykSignEd25519 since it now targets YubiKeys
1 parent 8f5413e commit bc889e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v2/piv/key.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ func (k *keyEd25519) Public() crypto.PublicKey {
12971297

12981298
func (k *keyEd25519) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) {
12991299
return k.auth.do(k.yk, k.pp, func(tx *scTx) ([]byte, error) {
1300-
return skSignEd25519(tx, k.slot, k.pub, digest)
1300+
return ykSignEd25519(tx, k.slot, k.pub, digest)
13011301
})
13021302
}
13031303

@@ -1400,7 +1400,7 @@ func ykECDHX25519(tx *scTx, slot Slot, pub *ecdh.PublicKey, peer *ecdh.PublicKey
14001400
return sharedSecret, nil
14011401
}
14021402

1403-
func skSignEd25519(tx *scTx, slot Slot, pub ed25519.PublicKey, digest []byte) ([]byte, error) {
1403+
func ykSignEd25519(tx *scTx, slot Slot, pub ed25519.PublicKey, digest []byte) ([]byte, error) {
14041404
// Adaptation of
14051405
// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-73-4.pdf#page=118
14061406
cmd := apdu{

0 commit comments

Comments
 (0)