3 writes to CoseKey
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseSigner.cs (3)
84CoseKey = CoseKey.FromKey((ECDsa)key, hashAlgorithm); 121CoseKey = CoseKey.FromKey(key, signaturePadding, hashAlgorithm); 143CoseKey = key;
19 references to CoseKey
System.Security.Cryptography.Cose (19)
System\Security\Cryptography\Cose\CoseHelpers.cs (1)
230int bytesWritten = signer.CoseKey.Sign(toBeSigned, buffer);
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (9)
453using (ToBeSignedBuilder toBeSignedBuilder = signer.CoseKey.CreateToBeSignedBuilder()) 484using (ToBeSignedBuilder toBeSignedBuilder = signer.CoseKey.CreateToBeSignedBuilder()) 529encodedSize += CoseHelpers.GetByteStringEncodedSize(signer.CoseKey.ComputeSignatureSize()); 778byte[] buffer = ArrayPool<byte>.Shared.Rent(Math.Max(toBeSignedLength, signer.CoseKey.ComputeSignatureSize())); 786using (ToBeSignedBuilder toBeSignedBuilder = signer.CoseKey.CreateToBeSignedBuilder()) 791bytesWritten = signer.CoseKey.Sign(toBeSigned, buff); 854byte[] buffer = ArrayPool<byte>.Shared.Rent(Math.Max(toBeSignedLength, signer.CoseKey.ComputeSignatureSize())); 859using (ToBeSignedBuilder toBeSignedBuilder = signer.CoseKey.CreateToBeSignedBuilder()) 865bytesWritten = signer.CoseKey.Sign(toBeSigned, buff);
System\Security\Cryptography\Cose\CoseSign1Message.cs (3)
319using (ToBeSignedBuilder toBeSignedBuilder = signer.CoseKey.CreateToBeSignedBuilder()) 344using (ToBeSignedBuilder toBeSignedBuilder = signer.CoseKey.CreateToBeSignedBuilder()) 943encodedSize += CoseHelpers.GetByteStringEncodedSize(signer.CoseKey.ComputeSignatureSize());
System\Security\Cryptography\Cose\CoseSigner.cs (6)
34public HashAlgorithmName HashAlgorithm => CoseKey.HashAlgorithm ?? default; 40public RSASignaturePadding? RSASignaturePadding => CoseKey.RSASignaturePadding; 166CoseAlgorithm algHeaderValue = CoseKey.Algorithm; 190switch (CoseKey.KeyType) 193exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyHashAlgorithmAndPadding, alg.Value, CoseKey.KeyType, HashAlgorithm.Name, RSASignaturePadding); 201exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyAndHashAlgorithm, alg.Value, CoseKey.KeyType, HashAlgorithm.Name);