Home
last modified time | relevance | path

Searched refs:KeyLengthAttribute (Results 1 – 2 of 2) sorted by relevance

/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeSaPayload.java1194 KeyLengthAttribute attr = getKeyLengthAttribute(attributeList); in EncryptionTransform()
1241 private KeyLengthAttribute getKeyLengthAttribute(List<Attribute> attributeList) { in getKeyLengthAttribute()
1244 return (KeyLengthAttribute) attr; in getKeyLengthAttribute()
1301 new KeyLengthAttribute(mSpecifiedKeyLength).encodeToByteBuffer(byteBuffer); in encodeToByteBuffer()
1310 len += new KeyLengthAttribute(mSpecifiedKeyLength).getAttributeLength(); in getTransformLength()
1776 return new Pair(new KeyLengthAttribute(value), length); in readFrom()
1790 public static final class KeyLengthAttribute extends Attribute { class in IkeSaPayload
1793 protected KeyLengthAttribute(byte[] value) { in KeyLengthAttribute() method in IkeSaPayload.KeyLengthAttribute
1797 protected KeyLengthAttribute(int keyLength) { in KeyLengthAttribute() method in IkeSaPayload.KeyLengthAttribute
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeSaPayloadTest.java57 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.KeyLengthAttribute;
145 private KeyLengthAttribute mAttributeKeyLength128;
180 mAttributeKeyLength128 = new KeyLengthAttribute(SaProposal.KEY_LEN_AES_128); in setUp()
272 assertTrue(attribute instanceof KeyLengthAttribute); in testDecodeAttribute()
274 assertEquals(SaProposal.KEY_LEN_AES_128, ((KeyLengthAttribute) attribute).keyLength); in testDecodeAttribute()
309 Attribute keyLengAttr = new KeyLengthAttribute(SaProposal.KEY_LEN_AES_128 + 1); in testDecodeEncryptionTransformWithInvalidKeyLength()