sha256_state Derived Type

type, public :: sha256_state


Components

Type Visibility Attributes Name Initial
integer(kind=int64), private :: h(8)
integer(kind=int64), private :: bytes = 0
integer, private :: used = 0
character(len=64), private :: buffer

Type-Bound Procedures

procedure, public :: init => sha_init

  • private subroutine sha_init(self)

    Arguments

    Type IntentOptional Attributes Name
    class(sha256_state), intent(out) :: self

procedure, public :: update => sha_update

  • private subroutine sha_update(self, data)

    Arguments

    Type IntentOptional Attributes Name
    class(sha256_state), intent(inout) :: self
    character(len=*), intent(in) :: data

procedure, public :: finish => sha_finish

  • private function sha_finish(self) result(hex)

    Arguments

    Type IntentOptional Attributes Name
    class(sha256_state), intent(inout) :: self

    Return Value character(len=64)