3 writes to CoseKey
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseSigner.cs (3)
81CoseKey = new CoseKey((ECDsa)key, hashAlgorithm); 115CoseKey = new CoseKey(key, signaturePadding, hashAlgorithm); 134CoseKey = key;
20 references to CoseKey
System.Security.Cryptography.Cose (20)
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()) 980encodedSize += CoseHelpers.GetByteStringEncodedSize(signer.CoseKey.ComputeSignatureSize());
System\Security\Cryptography\Cose\CoseSigner.cs (7)
22public AsymmetricAlgorithm? Key => CoseKey.AsymmetricAlgorithm; 34public HashAlgorithmName HashAlgorithm => CoseKey.HashAlgorithm ?? default; 40public RSASignaturePadding? RSASignaturePadding => CoseKey.RSASignaturePadding; 157CoseAlgorithm algHeaderValue = CoseKey.Algorithm; 181switch (CoseKey.KeyType) 184exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyHashAlgorithmAndPadding, alg.Value, CoseKey.KeyType, HashAlgorithm.Name, RSASignaturePadding); 192exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyAndHashAlgorithm, alg.Value, CoseKey.KeyType, HashAlgorithm.Name);