HomeSort by relevance Sort by last modified time
    Searched full:algid (Results 1 - 25 of 38) sorted by null

1 2

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
EncryptionScheme.java 13 private AlgorithmIdentifier algId;
19 this.algId = new AlgorithmIdentifier(objectId, parameters);
25 this.algId = AlgorithmIdentifier.getInstance(seq);
44 return algId.getAlgorithm();
49 return algId.getParameters();
54 return algId.toASN1Primitive();
KeyDerivationFunc.java 13 private AlgorithmIdentifier algId;
19 this.algId = new AlgorithmIdentifier(objectId, parameters);
25 this.algId = AlgorithmIdentifier.getInstance(seq);
44 return algId.getAlgorithm();
49 return algId.getParameters();
54 return algId.toASN1Primitive();
EncryptedPrivateKeyInfo.java 17 private AlgorithmIdentifier algId;
25 algId = AlgorithmIdentifier.getInstance(e.nextElement());
30 AlgorithmIdentifier algId,
33 this.algId = algId;
54 return algId;
81 v.add(algId);
PrivateKeyInfo.java 26 private AlgorithmIdentifier algId;
52 AlgorithmIdentifier algId,
56 this(algId, privateKey, null);
60 AlgorithmIdentifier algId,
66 this.algId = algId;
85 algId = AlgorithmIdentifier.getInstance(e.nextElement());
96 return algId;
103 return algId;
154 v.add(algId);
    [all...]
PBKDF2Params.java 27 * prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 }
63 * Create a PBKDF2Params with the specified salt, iteration count, and algid-hmacWithSHA1 for the prf.
76 * Create a PBKDF2Params with the specified salt, iteration count, keyLength, and algid-hmacWithSHA1 for the prf.
225 * Return the algId of the underlying pseudo random function to use.
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DigestInfo.java 26 private AlgorithmIdentifier algId;
51 AlgorithmIdentifier algId,
55 this.algId = algId;
63 algId = AlgorithmIdentifier.getInstance(e.nextElement());
69 return algId;
81 v.add(algId);
SubjectPublicKeyInfo.java 25 private AlgorithmIdentifier algId;
51 AlgorithmIdentifier algId,
56 this.algId = algId;
60 AlgorithmIdentifier algId,
64 this.algId = algId;
81 this.algId = AlgorithmIdentifier.getInstance(e.nextElement());
87 return algId;
96 return algId;
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
KeyUtil.java 11 public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable keyData)
15 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData));
23 public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] keyData)
27 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData));
47 public static byte[] getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey)
51 PrivateKeyInfo info = new PrivateKeyInfo(algId, privKey.toASN1Primitive());
  /libcore/ojluni/src/main/java/sun/security/x509/
CertificateAlgorithmId.java 42 private AlgorithmId algId;
65 * @param algId the Algorithm identifier
67 public CertificateAlgorithmId(AlgorithmId algId) {
68 this.algId = algId;
79 algId = AlgorithmId.parse(val);
90 algId = AlgorithmId.parse(val);
97 if (algId == null) return "";
98 return (algId.toString() +
99 ", OID = " + (algId.getOID()).toString() + "\n")
    [all...]
X509Key.java 66 protected AlgorithmId algid; field in class:X509Key
103 private X509Key(AlgorithmId algid, BitArray key)
105 this.algid = algid;
205 static PublicKey buildX509Key(AlgorithmId algid, BitArray key)
209 * Use the algid and key parameters to produce the ASN.1 encoding
214 encode(x509EncodedKeyStream, algid, key);
220 KeyFactory keyFac = KeyFactory.getInstance(algid.getName());
243 algid.getName());
265 result.algid = algid
    [all...]
AlgorithmId.java 67 private ObjectIdentifier algid; field in class:AlgorithmId
95 algid = oid;
105 algid = oid;
112 this.algid = oid;
120 String algidString = algid.toString();
163 bytes.putOID(algid);
188 algid.equals((Object)SHA_oid) ||
189 algid.equals((Object)SHA256_oid) ||
190 algid.equals((Object)SHA384_oid) ||
191 algid.equals((Object)SHA512_oid) |
369 ObjectIdentifier algid; local
    [all...]
X509CertInfo.java 86 protected CertificateAlgorithmId algId = null;
295 || issuer == null || algId == null || serialNum == null) {
303 sb.append(" Signature Algorithm: " + algId.toString() + "\n");
398 algId.set(suffix, val);
483 algId = null;
485 algId.delete(suffix);
575 return(algId);
577 return(algId.get(suffix));
646 algId = new CertificateAlgorithmId(in);
764 algId.encode(tmp)
    [all...]
  /external/tpm2/
AlgorithmCap_fp.h 15 TPM_ALG_ID algID, // IN: the starting algorithm ID
AlgorithmCap.c 11 TPM_ALG_ID algID;
128 TPM_ALG_ID algID, // IN: the starting algorithm ID
143 // Scan the implemented algorithm list to see if there is a match to 'algID'.
146 // If algID is less than the starting algorithm ID, skip it
147 if(s_algorithms[i].algID < algID)
153 algList->algProperties[algList->count].alg = s_algorithms[i].algID;
180 SET_BIT(s_algorithms[index].algID, *implemented);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
PrivateKeyFactory.java 81 AlgorithmIdentifier algId = keyInfo.getPrivateKeyAlgorithm();
83 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption))
93 // else if (algId.getObjectId().equals(X9ObjectIdentifiers.dhpublicnumber))
94 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement))
96 DHParameter params = DHParameter.getInstance(algId.getParameters());
106 // else if (algId.getAlgorithm().equals(OIWObjectIdentifiers.elGamalAlgorithm))
108 // ElGamalParameter params = ElGamalParameter.getInstance(algId.getParameters());
115 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa))
118 ASN1Encodable de = algId.getParameters();
129 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_ecPublicKey)
    [all...]
PublicKeyFactory.java 88 AlgorithmIdentifier algId = keyInfo.getAlgorithm();
90 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption)
91 || algId.getAlgorithm().equals(X509ObjectIdentifiers.id_ea_rsa))
97 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.dhpublicnumber))
103 DomainParameters dhParams = DomainParameters.getInstance(algId.getParameters());
129 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement))
131 DHParameter params = DHParameter.getInstance(algId.getParameters());
141 // else if (algId.getAlgorithm().equals(OIWObjectIdentifiers.elGamalAlgorithm))
143 // ElGamalParameter params = ElGamalParameter.getInstance(algId.getParameters());
150 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa
    [all...]
  /libcore/ojluni/src/main/java/sun/security/pkcs/
PKCS8Key.java 58 protected AlgorithmId algid; field in class:PKCS8Key
81 private PKCS8Key (AlgorithmId algid, byte key [])
83 this.algid = algid;
168 static PrivateKey buildPKCS8Key (AlgorithmId algid, byte[] key)
172 * Use the algid and key parameters to produce the ASN.1 encoding
177 encode(pkcs8EncodedKeyStream, algid, key);
183 KeyFactory keyFac = KeyFactory.getInstance(algid.getName());
206 algid.getName());
228 result.algid = algid
    [all...]
  /libcore/ojluni/src/main/java/javax/crypto/
EncryptedPrivateKeyInfo.java 61 private AlgorithmId algid; field in class:EncryptedPrivateKeyInfo
95 this.algid = AlgorithmId.parse(seq[0]);
137 this.algid = AlgorithmId.get(algName);
178 this.algid = AlgorithmId.get(algParams);
208 return this.algid.getName();
216 return this.algid.getParameters();
282 c = Cipher.getInstance(algid.getName());
284 c = Cipher.getInstance(algid.getName(), provider);
286 c.init(Cipher.DECRYPT_MODE, decryptKey, algid.getParameters());
407 algid.encode(tmp)
437 DerInputStream algid = values[1].toDerInputStream(); local
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DigestSignatureSpi.java 55 private AlgorithmIdentifier algId;
64 this.algId = null;
75 this.algId = new AlgorithmIdentifier(objId, DERNull.INSTANCE);
249 if (algId == null)
255 DigestInfo dInfo = new DigestInfo(algId, hash);
  /libcore/ojluni/src/main/java/sun/security/ec/
ECPublicKeyImpl.java 59 algid = new AlgorithmId
97 AlgorithmParameters algParams = this.algid.getParameters();
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
CMSSignedHelper.java 146 AlgorithmIdentifier fixAlgID(AlgorithmIdentifier algId)
148 if (algId.getParameters() == null)
150 return new AlgorithmIdentifier(algId.getAlgorithm(), DERNull.INSTANCE);
153 return algId;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
RSADigestSigner.java 31 private final AlgorithmIdentifier algId;
74 this.algId = new AlgorithmIdentifier(digestOid, DERNull.INSTANCE);
242 DigestInfo dInfo = new DigestInfo(algId, hash);
  /system/extras/verity/
Utils.java 260 AlgorithmIdentifier algId) throws Exception {
261 String algName = ID_TO_ALG.get(algId.getAlgorithm().getId());
264 throw new IllegalArgumentException("Unsupported algorithm " + algId.getAlgorithm());
BootSignature.java 109 ASN1Sequence algId = (ASN1Sequence) sequence.getObjectAt(2);
111 (ASN1ObjectIdentifier) algId.getObjectAt(0));
143 public void setSignature(byte[] sig, AlgorithmIdentifier algId) {
144 algorithmIdentifier = algId;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
PKCS12KeyStoreSpi.java 605 AlgorithmIdentifier algId,
611 ASN1ObjectIdentifier algorithm = algId.getAlgorithm();
616 PKCS12PBEParams pbeParams = PKCS12PBEParams.getInstance(algId.getParameters());
633 Cipher cipher = createCipher(Cipher.UNWRAP_MODE, password, algId);
680 AlgorithmIdentifier algId,
686 ASN1ObjectIdentifier algorithm = algId.getAlgorithm();
691 PKCS12PBEParams pbeParams = PKCS12PBEParams.getInstance(algId.getParameters());
715 Cipher cipher = createCipher(mode, password, algId);
730 private Cipher createCipher(int mode, char[] password, AlgorithmIdentifier algId)
733 PBES2Parameters alg = PBES2Parameters.getInstance(algId.getParameters())
    [all...]

Completed in 1239 milliseconds

1 2