Home
last modified time | relevance | path

Searched refs:publicKey (Results 1 – 25 of 4543) sorted by relevance

12345678910>>...182

/dports/net-im/libsignal-client/libsignal-client-0.9.6/swift/Sources/SignalClient/
H A DIdentityKey.swift10 public let publicKey: PublicKey variable
12 public init(publicKey: PublicKey) {
13 self.publicKey = publicKey
17 publicKey = try PublicKey(bytes)
21 return publicKey.serialize() in serialize()
26 public let publicKey: PublicKey variable
31 let publicKey = privateKey.publicKey in generate() variable
32 return IdentityKeyPair(publicKey: publicKey, privateKey: privateKey) in generate()
42 publicKey = PublicKey(owned: pubkeyPtr!)
47 self.publicKey = publicKey
[all …]
/dports/net-im/libsignal-client/libsignal-client-0.9.6/java/java/src/main/java/org/whispersystems/libsignal/
H A DIdentityKey.java21 private final ECPublicKey publicKey; field in IdentityKey
23 public IdentityKey(ECPublicKey publicKey) { in IdentityKey() argument
24 this.publicKey = publicKey; in IdentityKey()
28 this.publicKey = Curve.decodePoint(bytes, offset); in IdentityKey()
32 this.publicKey = Curve.decodePoint(bytes, 0); in IdentityKey()
36 this.publicKey = new ECPublicKey(nativeHandle); in IdentityKey()
40 return publicKey; in getPublicKey()
44 return publicKey.serialize(); in serialize()
48 return Hex.toString(publicKey.serialize()); in getFingerprint()
61 return publicKey.hashCode(); in hashCode()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/Mono.Security/Mono.Security/
H A DStrongName.cs109 private byte[] publicKey; field in Mono.Security.StrongName
155 publicKey = null; in InvalidateCache()
202 if (publicKey == null) {
215 publicKey [4] = 0x04;
216 publicKey [5] = 0x80;
217 publicKey [6] = 0x00;
218 publicKey [7] = 0x00;
228 Buffer.BlockCopy (keyPair, 1, publicKey, 13, publicKey.Length - 13);
240 if (publicKey == null)
485 if ((publicKey == null) || (publicKey.Length < 12)) { in IsAssemblyStrongnamed()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/System/Security/Cryptography/
H A DSecKeyPair.cs14 private SecKeyPair(SafeSecKeyRefHandle publicKey, SafeSecKeyRefHandle privateKey) in SecKeyPair() argument
16 PublicKey = publicKey; in SecKeyPair()
28 …internal static SecKeyPair PublicPrivatePair(SafeSecKeyRefHandle publicKey, SafeSecKeyRefHandle pr… in PublicPrivatePair() argument
30 if (publicKey == null || publicKey.IsInvalid) in PublicPrivatePair()
31 throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(publicKey)); in PublicPrivatePair()
35 return new SecKeyPair(publicKey, privateKey); in PublicPrivatePair()
38 internal static SecKeyPair PublicOnly(SafeSecKeyRefHandle publicKey) in PublicOnly() argument
40 if (publicKey == null || publicKey.IsInvalid) in PublicOnly()
41 throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(publicKey)); in PublicOnly()
43 return new SecKeyPair(publicKey, null); in PublicOnly()
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/jedisct1/go-minisign/
H A Dminisign.go28 var publicKey PublicKey
31 return publicKey, errors.New("Invalid encoded public key")
33 copy(publicKey.SignatureAlgorithm[:], bin[0:2])
34 copy(publicKey.KeyId[:], bin[2:10])
35 copy(publicKey.PublicKey[:], bin[10:42])
36 return publicKey, nil
40 var publicKey PublicKey
72 var publicKey PublicKey
75 return publicKey, err
96 if publicKey.KeyId != signature.KeyId {
[all …]
/dports/dns/dnscrypt-proxy2/dnscrypt-proxy-2.1.1/vendor/github.com/jedisct1/go-minisign/
H A Dminisign.go28 var publicKey PublicKey
31 return publicKey, errors.New("Invalid encoded public key")
33 copy(publicKey.SignatureAlgorithm[:], bin[0:2])
34 copy(publicKey.KeyId[:], bin[2:10])
35 copy(publicKey.PublicKey[:], bin[10:42])
36 return publicKey, nil
40 var publicKey PublicKey
76 var publicKey PublicKey
79 return publicKey, err
100 if publicKey.KeyId != signature.KeyId {
[all …]
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/pqc/crypto/lms/
H A DLMSSignedPubKey.java11 private final LMSPublicKeyParameters publicKey; field in LMSSignedPubKey
13 public LMSSignedPubKey(LMSSignature signature, LMSPublicKeyParameters publicKey) in LMSSignedPubKey() argument
16 this.publicKey = publicKey; in LMSSignedPubKey()
27 return publicKey; in getPublicKey()
48 return publicKey != null ? publicKey.equals(that.publicKey) : that.publicKey == null; in equals()
55 result = 31 * result + (publicKey != null ? publicKey.hashCode() : 0); in hashCode()
64 .bytes(publicKey.getEncoded()) in getEncoded()
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/pqc/crypto/xmss/
H A DXMSSMT.java19 private XMSSMTPublicKeyParameters publicKey; field in XMSSMT
53 publicKey = (XMSSMTPublicKeyParameters)kp.getPublic(); in generateKeys()
55 importState(privateKey, publicKey); in generateKeys()
64 this.publicKey = publicKey; in importState()
73 public void importState(byte[] privateKey, byte[] publicKey) in importState() argument
79 if (publicKey == null) in importState()
86 .withPublicKey(publicKey).build(); in importState()
100 this.publicKey = xmssMTPublicKey; in importState()
124 importState(privateKey, publicKey); in sign()
149 if (publicKey == null) in verifySignature()
[all …]
H A DWOTSPlusPublicKeyParameters.java9 private final byte[][] publicKey; field in WOTSPlusPublicKeyParameters
11 protected WOTSPlusPublicKeyParameters(WOTSPlusParameters params, byte[][] publicKey) in WOTSPlusPublicKeyParameters() argument
18 if (publicKey == null) in WOTSPlusPublicKeyParameters()
22 if (XMSSUtil.hasNullPointer(publicKey)) in WOTSPlusPublicKeyParameters()
26 if (publicKey.length != params.getLen()) in WOTSPlusPublicKeyParameters()
30 for (int i = 0; i < publicKey.length; i++) in WOTSPlusPublicKeyParameters()
32 if (publicKey[i].length != params.getTreeDigestSize()) in WOTSPlusPublicKeyParameters()
37 this.publicKey = XMSSUtil.cloneArray(publicKey); in WOTSPlusPublicKeyParameters()
42 return XMSSUtil.cloneArray(publicKey); in toByteArray()
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/jdk/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java58 PublicKey publicKey) throws Exception { in testSignature() argument
64 s.initVerify(publicKey); in testSignature()
73 testSignature("MD2withRSA", privateKey, publicKey); in test()
74 testSignature("MD5withRSA", privateKey, publicKey); in test()
75 testSignature("SHA1withRSA", privateKey, publicKey); in test()
76 testSignature("SHA224withRSA", privateKey, publicKey); in test()
77 testSignature("SHA256withRSA", privateKey, publicKey); in test()
78 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
134 System.out.println(publicKey); in main()
142 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/test/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java54 PublicKey publicKey) throws Exception { in testSignature() argument
60 s.initVerify(publicKey); in testSignature()
69 testSignature("MD2withRSA", privateKey, publicKey); in test()
70 testSignature("MD5withRSA", privateKey, publicKey); in test()
71 testSignature("SHA1withRSA", privateKey, publicKey); in test()
72 testSignature("SHA224withRSA", privateKey, publicKey); in test()
73 testSignature("SHA256withRSA", privateKey, publicKey); in test()
74 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
130 System.out.println(publicKey); in main()
138 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/test/sun/security/pkcs11/rsa/
H A DTestKeyPairGenerator.java54 PublicKey publicKey) throws Exception { in testSignature() argument
60 s.initVerify(publicKey); in testSignature()
69 testSignature("MD2withRSA", privateKey, publicKey); in test()
70 testSignature("MD5withRSA", privateKey, publicKey); in test()
71 testSignature("SHA1withRSA", privateKey, publicKey); in test()
72 testSignature("SHA224withRSA", privateKey, publicKey); in test()
73 testSignature("SHA256withRSA", privateKey, publicKey); in test()
74 RSAPublicKey rsaKey = (RSAPublicKey)publicKey; in test()
130 System.out.println(publicKey); in main()
138 int keyLen = publicKey.getModulus().bitLength(); in main()
[all …]
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/keys/content/
H A DDEREncodedKeyValue.java64 public DEREncodedKeyValue(Document doc, PublicKey publicKey) throws XMLSecurityException { in DEREncodedKeyValue() argument
67 this.addBase64Text(getEncodedDER(publicKey)); in DEREncodedKeyValue()
119 PublicKey publicKey = keyFactory.generatePublic(keySpec); in getPublicKey() local
120 if (publicKey != null) { in getPublicKey()
121 return publicKey; in getPublicKey()
138 protected byte[] getEncodedDER(PublicKey publicKey) throws XMLSecurityException { in getEncodedDER() argument
140 KeyFactory keyFactory = KeyFactory.getInstance(publicKey.getAlgorithm()); in getEncodedDER()
141 X509EncodedKeySpec keySpec = keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in getEncodedDER()
144 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
147 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/keys/content/
H A DDEREncodedKeyValue.java64 public DEREncodedKeyValue(Document doc, PublicKey publicKey) throws XMLSecurityException { in DEREncodedKeyValue() argument
67 this.addBase64Text(getEncodedDER(publicKey)); in DEREncodedKeyValue()
119 PublicKey publicKey = keyFactory.generatePublic(keySpec); in getPublicKey() local
120 if (publicKey != null) { in getPublicKey()
121 return publicKey; in getPublicKey()
138 protected byte[] getEncodedDER(PublicKey publicKey) throws XMLSecurityException { in getEncodedDER() argument
140 KeyFactory keyFactory = KeyFactory.getInstance(publicKey.getAlgorithm()); in getEncodedDER()
141 X509EncodedKeySpec keySpec = keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in getEncodedDER()
144 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
147 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/keys/content/
H A DDEREncodedKeyValue.java64 public DEREncodedKeyValue(Document doc, PublicKey publicKey) throws XMLSecurityException { in DEREncodedKeyValue() argument
67 this.addBase64Text(getEncodedDER(publicKey)); in DEREncodedKeyValue()
119 PublicKey publicKey = keyFactory.generatePublic(keySpec); in getPublicKey() local
120 if (publicKey != null) { in getPublicKey()
121 return publicKey; in getPublicKey()
138 protected byte[] getEncodedDER(PublicKey publicKey) throws XMLSecurityException { in getEncodedDER() argument
140 KeyFactory keyFactory = KeyFactory.getInstance(publicKey.getAlgorithm()); in getEncodedDER()
141 X509EncodedKeySpec keySpec = keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in getEncodedDER()
144 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
147 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/keys/content/
H A DDEREncodedKeyValue.java64 public DEREncodedKeyValue(Document doc, PublicKey publicKey) throws XMLSecurityException { in DEREncodedKeyValue() argument
67 this.addBase64Text(getEncodedDER(publicKey)); in DEREncodedKeyValue()
119 PublicKey publicKey = keyFactory.generatePublic(keySpec); in getPublicKey() local
120 if (publicKey != null) { in getPublicKey()
121 return publicKey; in getPublicKey()
138 protected byte[] getEncodedDER(PublicKey publicKey) throws XMLSecurityException { in getEncodedDER() argument
140 KeyFactory keyFactory = KeyFactory.getInstance(publicKey.getAlgorithm()); in getEncodedDER()
141 X509EncodedKeySpec keySpec = keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in getEncodedDER()
144 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
147 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/keys/content/
H A DDEREncodedKeyValue.java64 public DEREncodedKeyValue(Document doc, PublicKey publicKey) throws XMLSecurityException { in DEREncodedKeyValue() argument
67 this.addBase64Text(getEncodedDER(publicKey)); in DEREncodedKeyValue()
119 PublicKey publicKey = keyFactory.generatePublic(keySpec); in getPublicKey() local
120 if (publicKey != null) { in getPublicKey()
121 return publicKey; in getPublicKey()
138 protected byte[] getEncodedDER(PublicKey publicKey) throws XMLSecurityException { in getEncodedDER() argument
140 KeyFactory keyFactory = KeyFactory.getInstance(publicKey.getAlgorithm()); in getEncodedDER()
141 X509EncodedKeySpec keySpec = keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in getEncodedDER()
144 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
147 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/keys/content/
H A DDEREncodedKeyValue.java64 public DEREncodedKeyValue(Document doc, PublicKey publicKey) throws XMLSecurityException { in DEREncodedKeyValue() argument
67 this.addBase64Text(getEncodedDER(publicKey)); in DEREncodedKeyValue()
119 PublicKey publicKey = keyFactory.generatePublic(keySpec); in getPublicKey() local
120 if (publicKey != null) { in getPublicKey()
121 return publicKey; in getPublicKey()
138 protected byte[] getEncodedDER(PublicKey publicKey) throws XMLSecurityException { in getEncodedDER() argument
140 KeyFactory keyFactory = KeyFactory.getInstance(publicKey.getAlgorithm()); in getEncodedDER()
141 X509EncodedKeySpec keySpec = keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in getEncodedDER()
144 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()
147 …Object exArgs[] = { publicKey.getAlgorithm(), publicKey.getFormat(), publicKey.getClass().getName(… in getEncodedDER()

12345678910>>...182