-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ASN.1 encoder and decoder for CAMMAC
Add internal type declarations for krb5_verifier_mac and krb5_cammac. Add ASN.1 encoder and decoder functions and an internal free function for krb5_cammac. Add ASN.1 tests for krb5_cammac as well as asn1c test vectors for Verifier and AD-CAMMAC.
- Loading branch information
1 parent
2c3c44c
commit 6a06997
Showing
15 changed files
with
382 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
KerberosV5CAMMAC DEFINITIONS EXPLICIT TAGS ::= BEGIN | ||
|
||
IMPORTS | ||
AuthorizationData, PrincipalName, Checksum, UInt32, Int32 | ||
FROM KerberosV5Spec2 { iso(1) identified-organization(3) | ||
dod(6) internet(1) security(5) kerberosV5(2) | ||
modules(4) krb5spec2(2) }; | ||
-- as defined in RFC 4120. | ||
|
||
AD-CAMMAC ::= SEQUENCE { | ||
elements [0] AuthorizationData, | ||
kdc-verifier [1] Verifier-MAC OPTIONAL, | ||
svc-verifier [2] Verifier-MAC OPTIONAL, | ||
other-verifiers [3] SEQUENCE (SIZE (1..MAX)) | ||
OF Verifier OPTIONAL | ||
} | ||
|
||
Verifier ::= CHOICE { | ||
mac Verifier-MAC, | ||
... | ||
} | ||
|
||
Verifier-MAC ::= SEQUENCE { | ||
identifier [0] PrincipalName OPTIONAL, | ||
kvno [1] UInt32 OPTIONAL, | ||
enctype [2] Int32 OPTIONAL, | ||
mac [3] Checksum | ||
} | ||
|
||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.